document.write("<div class=\"pastie\">\n");
document.write("  <link href=\"http://pastie.org/stylesheets/embed.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  <link href=\"http://pastie.org/stylesheets/clean.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  \n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("	\n");
document.write("	<div class=\"allcode\">\n");
document.write("		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n");
document.write("		<tr>\n");
document.write("			<td>\n");
document.write("				\n");
document.write("				<pre class=\"textmate-source-numbers\">1\n");
document.write("2\n");
document.write("3\n");
document.write("4\n");
document.write("5\n");
document.write("6\n");
document.write("7\n");
document.write("8\n");
document.write("9\n");
document.write("10\n");
document.write("11\n");
document.write("12\n");
document.write("13\n");
document.write("14\n");
document.write("15\n");
document.write("16\n");
document.write("17\n");
document.write("18\n");
document.write("19\n");
document.write("20\n");
document.write("21\n");
document.write("22\n");
document.write("23\n");
document.write("24\n");
document.write("25\n");
document.write("26\n");
document.write("27\n");
document.write("28\n");
document.write("29\n");
document.write("30\n");
document.write("31\n");
document.write("32\n");
document.write("33\n");
document.write("34\n");
document.write("35\n");
document.write("36\n");
document.write("37\n");
document.write("38\n");
document.write("39\n");
document.write("40\n");
document.write("41\n");
document.write("42\n");
document.write("43\n");
document.write("44\n");
document.write("45\n");
document.write("46\n");
document.write("47\n");
document.write("48\n");
document.write("49\n");
document.write("50\n");
document.write("51\n");
document.write("52\n");
document.write("53\n");
document.write("54\n");
document.write("55\n");
document.write("56\n");
document.write("57\n");
document.write("58\n");
document.write("59\n");
document.write("60\n");
document.write("61\n");
document.write("62\n");
document.write("63\n");
document.write("64\n");
document.write("65\n");
document.write("66\n");
document.write("67\n");
document.write("68\n");
document.write("69\n");
document.write("70\n");
document.write("71\n");
document.write("72\n");
document.write("73\n");
document.write("74\n");
document.write("75\n");
document.write("76\n");
document.write("77\n");
document.write("78\n");
document.write("79\n");
document.write("<\/pre>\n");
document.write("			<\/td>\n");
document.write("		<td>\n");
document.write("		<pre class=\"textmate-source\"><pre class=\"sunburst\"><span class=\'keyword keyword_control keyword_control_perl\'>use<\/span> Test::More <span class=\'constant constant_other constant_other_key constant_other_key_perl\'>tests <\/span>=&gt; 12;\n");
document.write("\n");
document.write("<span class=\'meta meta_class meta_class_perl\'><span class=\'keyword keyword_control keyword_control_perl\'>package<\/span> <span class=\'entity entity_name entity_name_type entity_name_type_class entity_name_type_class_perl\'>TryCatch::Error::Simple::Base;<\/span><\/span>\n");
document.write("\n");
document.write("<span class=\'keyword keyword_control keyword_control_perl\'>use<\/span> base <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'TryCatch::Error\'<\/span>;\n");
document.write("\n");
document.write("<span class=\'meta meta_function meta_function_perl\'><span class=\'storage storage_type storage_type_sub storage_type_sub_perl\'>sub<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_perl\'>new<\/span> <\/span>{\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'storage storage_modifier storage_modifier_perl\'>my<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$proto<\/span> = <span class=\'support support_function support_function_perl\'>shift<\/span>;\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'storage storage_modifier storage_modifier_perl\'>my<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$args<\/span>  = { <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_special variable_other_readwrite_global_special_perl\'>@_<\/span> };\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span>\n");
document.write("<span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'storage storage_modifier storage_modifier_perl\'>my<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$class<\/span> = <span class=\'support support_function support_function_perl\'>ref<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$proto<\/span> || <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$proto<\/span>;\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'storage storage_modifier storage_modifier_perl\'>my<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$self<\/span> = <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$class<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>SUPER::new( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_special variable_other_readwrite_global_special_perl\'>@_<\/span> );\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span>\n");
document.write("<span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$self<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>{<span class=\'constant constant_other constant_other_bareword constant_other_bareword_perl\'>object<\/span>} = <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$args<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>{<span class=\'constant constant_other constant_other_bareword constant_other_bareword_perl\'>object<\/span>};\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span>\n");
document.write("<span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'keyword keyword_control keyword_control_perl\'>return<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$self<\/span>;\n");
document.write("}\n");
document.write("\n");
document.write("<span class=\'meta meta_function meta_function_perl\'><span class=\'storage storage_type storage_type_sub storage_type_sub_perl\'>sub<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_perl\'>get_object<\/span> <\/span>{\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'storage storage_modifier storage_modifier_perl\'>my<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$self<\/span> = <span class=\'support support_function support_function_perl\'>shift<\/span>;\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span>\n");
document.write("<span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'keyword keyword_control keyword_control_perl\'>return<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$self<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>{<span class=\'constant constant_other constant_other_bareword constant_other_bareword_perl\'>object<\/span>};\n");
document.write("}\n");
document.write("\n");
document.write("<span class=\'meta meta_function meta_function_perl\'><span class=\'storage storage_type storage_type_sub storage_type_sub_perl\'>sub<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_perl\'>set_object<\/span> <\/span>{\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'storage storage_modifier storage_modifier_perl\'>my<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$self<\/span> = <span class=\'support support_function support_function_perl\'>shift<\/span>;\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'storage storage_modifier storage_modifier_perl\'>my<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$arg<\/span>  = <span class=\'support support_function support_function_perl\'>shift<\/span>;\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span>\n");
document.write("<span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$self<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>{<span class=\'constant constant_other constant_other_bareword constant_other_bareword_perl\'>object<\/span>} = <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$arg<\/span>;\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span>\n");
document.write("<span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'keyword keyword_control keyword_control_perl\'>return<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$self<\/span>;\n");
document.write("}\n");
document.write("\n");
document.write("<span class=\'meta meta_class meta_class_perl\'><span class=\'keyword keyword_control keyword_control_perl\'>package<\/span> <span class=\'entity entity_name entity_name_type entity_name_type_class entity_name_type_class_perl\'>TryCatch::Error::Simple::Moose;<\/span><\/span>\n");
document.write("\n");
document.write("<span class=\'keyword keyword_control keyword_control_perl\'>use<\/span> MooseX::FollowPBP;\n");
document.write("<span class=\'keyword keyword_control keyword_control_perl\'>use<\/span> Moose;\n");
document.write("\n");
document.write("extends <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'TryCatch::Error\'<\/span>;\n");
document.write("\n");
document.write("has <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'object\'<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'> =&gt;<\/span> (\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'constant constant_other constant_other_key constant_other_key_perl\'>is       <\/span>=&gt; <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'rw\'<\/span>,\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'constant constant_other constant_other_key constant_other_key_perl\'>isa      <\/span>=&gt; <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Object\'<\/span>,\n");
document.write("<span class=\'meta meta_leading-tabs\'><span class=\'meta meta_odd-tab\'>    <\/span><\/span><span class=\'constant constant_other constant_other_key constant_other_key_perl\'>default  <\/span>=&gt; <span class=\'support support_function support_function_perl\'>undef<\/span>,\n");
document.write(");\n");
document.write("\n");
document.write("<span class=\'constant constant_language constant_language_perl\'>__PACKAGE__<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>meta<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>make_immutable;\n");
document.write("<span class=\'support support_function support_function_perl\'>no<\/span> Moose;\n");
document.write("<span class=\'support support_function support_function_perl\'>no<\/span> MooseX::FollowPBP;\n");
document.write("\n");
document.write("<span class=\'meta meta_class meta_class_perl\'><span class=\'keyword keyword_control keyword_control_perl\'>package<\/span> <span class=\'entity entity_name entity_name_type entity_name_type_class entity_name_type_class_perl\'>main;<\/span><\/span>\n");
document.write("\n");
document.write("<span class=\'storage storage_modifier storage_modifier_perl\'>my<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$be<\/span> = TryCatch::Error::Simple::Base<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>new;\n");
document.write("\n");
document.write("is( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$be<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_value, 0, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Correct value\'<\/span> );\n");
document.write("is( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$be<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_message, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'\'<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Correct message\'<\/span> );\n");
document.write("is( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$be<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_object, <span class=\'support support_function support_function_perl\'>undef<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Correct object\'<\/span> );\n");
document.write("\n");
document.write("<span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$be<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>set_value( 1 );\n");
document.write("<span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$be<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>set_message( <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'An error\'<\/span> );\n");
document.write("<span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$be<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>set_object( <span class=\'support support_function support_function_perl\'>bless<\/span> { <span class=\'constant constant_other constant_other_key constant_other_key_perl\'>foo <\/span>=&gt; <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'bar\'<\/span> }, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'MyObject\'<\/span> );\n");
document.write("\n");
document.write("is( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$be<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_value, 1, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Correct value\'<\/span> );\n");
document.write("is( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$be<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_message, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'An error\'<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Correct message\'<\/span> );\n");
document.write("isa_ok( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$be<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_object, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'MyObject\'<\/span> );\n");
document.write("\n");
document.write("<span class=\'storage storage_modifier storage_modifier_perl\'>my<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$me<\/span> = TryCatch::Error::Simple::Moose<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>new;\n");
document.write("\n");
document.write("is( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$me<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_value, 0, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Correct value\'<\/span> );\n");
document.write("is( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$me<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_message, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'\'<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Correct message\'<\/span> );\n");
document.write("is( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$me<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_object, <span class=\'support support_function support_function_perl\'>undef<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Correct object\'<\/span> );\n");
document.write("\n");
document.write("<span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$me<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>set_value( 1 );\n");
document.write("<span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$me<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>set_message( <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'An error\'<\/span> );\n");
document.write("<span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$me<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>set_object( <span class=\'support support_function support_function_perl\'>bless<\/span> { <span class=\'constant constant_other constant_other_key constant_other_key_perl\'>foo <\/span>=&gt; <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'bar\'<\/span> }, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'MyObject\'<\/span> );\n");
document.write("\n");
document.write("is( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$me<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_value, 1, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Correct value\'<\/span> );\n");
document.write("is( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$me<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_message, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'An error\'<\/span>, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'Correct message\'<\/span> );\n");
document.write("isa_ok( <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_perl\'>$me<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_perl\'>-&gt;<\/span>get_object, <span class=\'string string_quoted string_quoted_single string_quoted_single_perl\'>\'MyObject\'<\/span> );\n");
document.write("<\/pre><\/pre>\n");
document.write("		<\/td>\n");
document.write("		<\/tr>\n");
document.write("		<\/table>\n");
document.write("	\n");
document.write("	<\/div>\n");
document.write("\n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("  <div class=\"credit\">\n");
document.write("    <div class=\"buttons\">\n");
document.write("      <a href=\"http://pastie.org/pastes/420257.txt\">\n");
document.write("      <img src=\"http://pastie.org/images/view.png\" height=\"20\" width=\"67\" /><\/a>\n");
document.write("    <\/div>\n");
document.write("  \n");
document.write("    <a href=\"http://pastie.org/420257\">Pastie #420257<\/a> linked directly from <a href=\"http://pastie.org/\">Pastie<\/a>.\n");
document.write("  <\/div><\/div>");

