ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- .packlist000064400000000127152346612630006367 0ustar00/usr/local/share/man/man3/Test::Exception.3pm /usr/local/share/perl5/Test/Exception.pm RecursiveDependency.pm000064400000007456152347572320011076 0ustar00# -*- Mode: cperl; coding: utf-8; cperl-indent-level: 4 -*- # vim: ts=4 sts=4 sw=4: package CPAN::Exception::RecursiveDependency; use strict; use overload '""' => "as_string"; use vars qw( $VERSION ); $VERSION = "5.5001"; { package CPAN::Exception::RecursiveDependency::na; use overload '""' => "as_string"; sub new { bless {}, shift }; sub as_string { "N/A" }; } my $NA = CPAN::Exception::RecursiveDependency::na->new; # a module sees its distribution (no version) # a distribution sees its prereqs (which are module names) (usually with versions) # a bundle sees its module names and/or its distributions (no version) sub new { my($class) = shift; my($deps_arg) = shift; my (@deps,%seen,$loop_starts_with); DCHAIN: for my $dep (@$deps_arg) { push @deps, {name => $dep, display_as => $dep}; if ($seen{$dep}++) { $loop_starts_with = $dep; last DCHAIN; } } my $in_loop = 0; my %mark; DWALK: for my $i (0..$#deps) { my $x = $deps[$i]{name}; $in_loop ||= $loop_starts_with && $x eq $loop_starts_with; my $xo = CPAN::Shell->expandany($x) or next; if ($xo->isa("CPAN::Module")) { my $have = $xo->inst_version || $NA; my($want,$d,$want_type); if ($i>0 and $d = $deps[$i-1]{name}) { my $do = CPAN::Shell->expandany($d); $want = $do->{prereq_pm}{requires}{$x}; if (defined $want) { $want_type = "requires: "; } else { $want = $do->{prereq_pm}{build_requires}{$x}; if (defined $want) { $want_type = "build_requires: "; } else { $want_type = "unknown status"; $want = "???"; } } } else { $want = $xo->cpan_version; $want_type = "want: "; } $deps[$i]{have} = $have; $deps[$i]{want_type} = $want_type; $deps[$i]{want} = $want; $deps[$i]{display_as} = "$x (have: $have; $want_type$want)"; if ((! ref $have || !$have->isa('CPAN::Exception::RecursiveDependency::na')) && CPAN::Version->vge($have, $want)) { # https://rt.cpan.org/Ticket/Display.html?id=115340 undef $loop_starts_with; last DWALK; } } elsif ($xo->isa("CPAN::Distribution")) { my $pretty = $deps[$i]{display_as} = $xo->pretty_id; my $mark_as; if ($in_loop) { $mark_as = CPAN::Distrostatus->new("NO cannot resolve circular dependency"); } else { $mark_as = CPAN::Distrostatus->new("NO one dependency ($loop_starts_with) is a circular dependency"); } $mark{$pretty} = { xo => $xo, mark_as => $mark_as }; } } if ($loop_starts_with) { while (my($k,$v) = each %mark) { my $xo = $v->{xo}; $xo->{make} = $v->{mark_as}; $xo->store_persistent_state; # otherwise I will not reach # all involved parties for # the next session } } bless { deps => \@deps, loop_starts_with => $loop_starts_with }, $class; } sub is_resolvable { ! defined shift->{loop_starts_with}; } sub as_string { my($self) = shift; my $deps = $self->{deps}; my $loop_starts_with = $self->{loop_starts_with}; unless ($loop_starts_with) { return "--not a recursive/circular dependency--"; } my $ret = "\nRecursive dependency detected:\n "; $ret .= join("\n => ", map {$_->{display_as}} @$deps); $ret .= ".\nCannot resolve.\n"; $ret; } 1; blocked_urllist.pm000064400000001630152347572320010275 0ustar00# -*- Mode: cperl; coding: utf-8; cperl-indent-level: 4 -*- # vim: ts=4 sts=4 sw=4: package CPAN::Exception::blocked_urllist; use strict; use overload '""' => "as_string"; use vars qw( $VERSION ); $VERSION = "1.001"; sub new { my($class) = @_; bless {}, $class; } sub as_string { my($self) = shift; if ($CPAN::Config->{connect_to_internet_ok}) { return qq{ You have not configured a urllist for CPAN mirrors. Configure it with o conf init urllist }; } else { return qq{ You have not configured a urllist and do not allow connections to the internet to get a list of mirrors. If you wish to get a list of CPAN mirrors to pick from, use this command o conf init connect_to_internet_ok urllist If you do not wish to get a list of mirrors and would prefer to set your urllist manually, use just this command instead o conf init urllist }; } } 1; yaml_process_error.pm000064400000003247152347572320011033 0ustar00# -*- Mode: cperl; coding: utf-8; cperl-indent-level: 4 -*- # vim: ts=4 sts=4 sw=4: package CPAN::Exception::yaml_process_error; use strict; use overload '""' => "as_string"; use vars qw( $VERSION ); $VERSION = "5.5"; sub new { my($class,$module,$file,$during,$error) = @_; # my $at = Carp::longmess(""); # XXX find something more beautiful bless { module => $module, file => $file, during => $during, error => $error, # at => $at, }, $class; } sub as_string { my($self) = shift; if ($self->{during}) { if ($self->{file}) { if ($self->{module}) { if ($self->{error}) { return "Alert: While trying to '$self->{during}' YAML file\n". " '$self->{file}'\n". "with '$self->{module}' the following error was encountered:\n". " $self->{error}\n"; } else { return "Alert: While trying to '$self->{during}' YAML file\n". " '$self->{file}'\n". "with '$self->{module}' some unknown error was encountered\n"; } } else { return "Alert: While trying to '$self->{during}' YAML file\n". " '$self->{file}'\n". "some unknown error was encountered\n"; } } else { return "Alert: While trying to '$self->{during}' some YAML file\n". "some unknown error was encountered\n"; } } else { return "Alert: unknown error encountered\n"; } } 1; yaml_not_installed.pm000064400000000752152347572320011001 0ustar00# -*- Mode: cperl; coding: utf-8; cperl-indent-level: 4 -*- # vim: ts=4 sts=4 sw=4: package CPAN::Exception::yaml_not_installed; use strict; use overload '""' => "as_string"; use vars qw( $VERSION ); $VERSION = "5.5"; sub new { my($class,$module,$file,$during) = @_; bless { module => $module, file => $file, during => $during }, $class; } sub as_string { my($self) = shift; "'$self->{module}' not installed, cannot $self->{during} '$self->{file}'\n"; } 1; HTTP.php000064400000002613152352437700006046 0ustar00reason = $reason; } $message = sprintf('%d %s', $this->code, $this->reason); parent::__construct($message, 'httpresponse', $data, $this->code); } /** * Get the status message */ public function getReason() { return $this->reason; } /** * Get the correct exception class for a given error code * * @param int|bool $code HTTP status code, or false if unavailable * @return string Exception class name to use */ public static function get_class($code) { if (!$code) { return 'Requests_Exception_HTTP_Unknown'; } $class = sprintf('Requests_Exception_HTTP_%d', $code); if (class_exists($class)) { return $class; } return 'Requests_Exception_HTTP_Unknown'; } }Transport.php000064400000000112152352437700007253 0ustar00code = $data->status_code; } parent::__construct($reason, $data); } }HTTP/412.php000064400000000633152352437700006354 0ustar00type = $type; } if ($code !== null) { $this->code = $code; } if ($message !== null) { $this->reason = $message; } $message = sprintf('%d %s', $this->code, $this->reason); parent::__construct($message, $this->type, $data, $this->code); } /** * Get the error message */ public function getReason() { return $this->reason; } } exception-c.ri000064400000001070152352440240007315 0ustar00U:RDoc::AnyMethod[iI"exception:ETI"Exception::exception;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"GWith no argument, or if the argument is the same as the receiver, ;TI"2return the receiver. Otherwise, create a new ;TI"Dexception object of the same class as the receiver, but with a ;TI"1message equal to string.to_str.;T: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0I"4exc.exception(string) -> an_exception or exc ;T0[I" (*args);T@FI"Exception;TcRDoc::NormalClass00exception-i.ri000064400000001067152352440240007331 0ustar00U:RDoc::AnyMethod[iI"exception:ETI"Exception#exception;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"GWith no argument, or if the argument is the same as the receiver, ;TI"2return the receiver. Otherwise, create a new ;TI"Dexception object of the same class as the receiver, but with a ;TI"1message equal to string.to_str.;T: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0I"4exc.exception(string) -> an_exception or exc ;T0[I" (*args);T@FI"Exception;TcRDoc::NormalClass00inspect-i.ri000064400000000534152352440240006776 0ustar00U:RDoc::AnyMethod[iI" inspect:ETI"Exception#inspect;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"3Return this exception's class name and message;T: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0I"#exception.inspect -> string ;T0[I"();T@FI"Exception;TcRDoc::NormalClass00json_create-c.ri000064400000000712152352440240007615 0ustar00U:RDoc::AnyMethod[iI"json_create:EFI"Exception::json_create;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"PDeserializes JSON string by constructing new Exception object with message ;TI"Im and backtrace b serialized with to_json;T: @fileI"'ext/json/lib/json/add/exception.rb;T:0@omit_headings_from_table_of_contents_below000[I" (object);T@FI"Exception;TcRDoc::NormalClass00set_backtrace-i.ri000064400000001000152352440240010110 0ustar00U:RDoc::AnyMethod[iI"set_backtrace:ETI"Exception#set_backtrace;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"PSets the backtrace information associated with +exc+. The +backtrace+ must ;TI"Nbe an array of String objects or a single String in the format described ;TI"in Exception#backtrace.;T: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0I".exc.set_backtrace(backtrace) -> array ;T0[I" (p1);T@FI"Exception;TcRDoc::NormalClass00new-c.ri000064400000000602152352440240006110 0ustar00U:RDoc::AnyMethod[iI"new:ETI"Exception::new;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"=Construct a new Exception object, optionally passing in ;TI"a message.;T: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0I".Exception.new(msg = nil) -> exception ;T0[I"(p1 = v1);T@FI"Exception;TcRDoc::NormalClass00backtrace-i.ri000064400000001551152352440240007250 0ustar00U:RDoc::AnyMethod[iI"backtrace:ETI"Exception#backtrace;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"HReturns any backtrace associated with the exception. The backtrace ;TI"Jis an array of strings, each containing either ``filename:lineNo: in ;TI"'`method''' or ``filename:lineNo.'';To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I" def a ;TI" raise "boom" ;TI" end ;TI" ;TI" def b ;TI" a() ;TI" end ;TI" ;TI" begin ;TI" b() ;TI"rescue => detail ;TI") print detail.backtrace.join("\n") ;TI" end ;T: @format0o; ; [I"produces:;T@o; ; [I"prog.rb:2:in `a' ;TI"prog.rb:6:in `b' ;TI"prog.rb:10;T; 0: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0I"%exception.backtrace -> array ;T0[I"();T@(FI"Exception;TcRDoc::NormalClass00as_json-i.ri000064400000000576152352440240006773 0ustar00U:RDoc::AnyMethod[iI" as_json:EFI"Exception#as_json;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"OReturns a hash, that will be turned into a JSON object and represent this ;TI" object.;T: @fileI"'ext/json/lib/json/add/exception.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*);T@FI"Exception;TcRDoc::NormalClass00to_json-i.ri000064400000000624152352440240007004 0ustar00U:RDoc::AnyMethod[iI" to_json:EFI"Exception#to_json;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"OStores class name (Exception) with message m and backtrace array ;TI"b as JSON string;T: @fileI"'ext/json/lib/json/add/exception.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*args);T@FI"Exception;TcRDoc::NormalClass00to_s-i.ri000064400000000575152352440240006302 0ustar00U:RDoc::AnyMethod[iI" to_s:ETI"Exception#to_s;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"BReturns exception's message (or the name of the exception if ;TI"no message is set).;T: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0I"!exception.to_s -> string ;T0[I"();T@FI"Exception;TcRDoc::NormalClass00message-i.ri000064400000001023152352440240006747 0ustar00U:RDoc::AnyMethod[iI" message:ETI"Exception#message;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"AReturns the result of invoking exception.to_s. ;TI"?Normally this returns the exception's message or name. By ;TI";supplying a to_str method, exceptions are agreeing to ;TI"(be used where Strings are expected.;T: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0I"$exception.message -> string ;T0[I"();T@FI"Exception;TcRDoc::NormalClass00cdesc-Exception.ri000064400000007674152352440240010134 0ustar00U:RDoc::NormalClass[iI"Exception:ET@I" Object;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[ I"DDescendants of class Exception are used to communicate between ;TI"PKernel#raise and +rescue+ statements in begin ... end blocks. ;TI"NException objects carry information about the exception -- its type (the ;TI"Kexception's class name), an optional descriptive string, and optional ;TI"Etraceback information. Exception subclasses may add additional ;TI"%information like NameError#name.;To:RDoc::Markup::BlankLineo; ;[I"NPrograms may make subclasses of Exception, typically of StandardError or ;TI"MRuntimeError, to provide custom classes and add additional information. ;TI"GSee the subclass list below for defaults for +raise+ and +rescue+.;T@o; ;[ I"IWhen an exception has been raised but not yet handled (in +rescue+, ;TI"O+ensure+, +at_exit+ and +END+ blocks) the global variable $! ;TI"Iwill contain the current exception and $@ contains the ;TI"#current exception's backtrace.;T@o; ;[ I"PIt is recommended that a library should have one subclass of StandardError ;TI"Nor RuntimeError and have specific exception types inherit from it. This ;TI"Pallows the user to rescue a generic exception type to catch all exceptions ;TI"Jthe library may raise even if future versions of the library add new ;TI"exception subclasses.;T@o; ;[I"For example:;T@o:RDoc::Markup::Verbatim;[I"class MyLibrary ;TI"" class Error < RuntimeError ;TI" end ;TI" ;TI"! class WidgetError < Error ;TI" end ;TI" ;TI" class FrobError < Error ;TI" end ;TI" ;TI" end ;T: @format0o; ;[I"JTo handle both WidgetError and FrobError the library user can rescue ;TI"MyLibrary::Error.;T@o; ;[I".The built-in subclasses of Exception are:;T@o:RDoc::Markup::List: @type: BULLET: @items[ o:RDoc::Markup::ListItem: @label0;[o; ;[I"NoMemoryError;To;;0;[o; ;[I"ScriptError;To; ;;;[o;;0;[o; ;[I"LoadError;To;;0;[o; ;[I"NotImplementedError;To;;0;[o; ;[I"SyntaxError;To;;0;[o; ;[I"SecurityError;To;;0;[o; ;[I"SignalException;To; ;;;[o;;0;[o; ;[I"Interrupt;To;;0;[o; ;[I"*StandardError -- default for +rescue+;To; ;;;[o;;0;[o; ;[I"ArgumentError;To;;0;[o; ;[I"EncodingError;To;;0;[o; ;[I"FiberError;To;;0;[o; ;[I" IOError;To; ;;;[o;;0;[o; ;[I" EOFError;To;;0;[o; ;[I"IndexError;To; ;;;[o;;0;[o; ;[I" KeyError;To;;0;[o; ;[I"StopIteration;To;;0;[o; ;[I"LocalJumpError;To;;0;[o; ;[I"NameError;To; ;;;[o;;0;[o; ;[I"NoMethodError;To;;0;[o; ;[I"RangeError;To; ;;;[o;;0;[o; ;[I"FloatDomainError;To;;0;[o; ;[I"RegexpError;To;;0;[o; ;[I"(RuntimeError -- default for +raise+;To;;0;[o; ;[I"SystemCallError;To; ;;;[o;;0;[o; ;[I" Errno::*;To;;0;[o; ;[I"ThreadError;To;;0;[o; ;[I"TypeError;To;;0;[o; ;[I"ZeroDivisionError;To;;0;[o; ;[I"SystemExit;To;;0;[o; ;[I"SystemStackError;To;;0;[o; ;[I""fatal -- impossible to rescue;T: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0o;;[o; ;[I",Exception serialization/deserialization;T;I"'ext/json/lib/json/add/exception.rb;T;0;0;0[[[[[I" class;T[[: public[[I"exception;TI" error.c;T[I"json_create;FI"'ext/json/lib/json/add/exception.rb;T[I"new;T@þ[:protected[[: private[[I" instance;T[[;[[I"==;T@þ[I" as_json;F@[I"backtrace;T@þ[I"backtrace_locations;T@þ[I" cause;T@þ[I"exception;T@þ[I" inspect;T@þ[I" message;T@þ[I"set_backtrace;T@þ[I" to_json;F@[I" to_s;T@þ[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@ì@ò@òcRDoc::TopLevelcause-i.ri000064400000000340152352440240006424 0ustar00U:RDoc::AnyMethod[iI" cause:ETI"Exception#cause;TF: publico:RDoc::Markup::Document: @parts[: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI"Exception;TcRDoc::NormalClass00%3d%3d-i.ri000064400000000767152352440240006210 0ustar00U:RDoc::AnyMethod[iI"==:ETI"Exception#==;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HEquality---If obj is not an Exception, returns ;TI"Pfalse. Otherwise, returns true if exc and ;TI":obj share same class, messages, and backtrace.;T: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0I"#exc == obj -> true or false ;T0[I" (p1);T@FI"Exception;TcRDoc::NormalClass00backtrace_locations-i.ri000064400000001166152352440240011325 0ustar00U:RDoc::AnyMethod[iI"backtrace_locations:ETI""Exception#backtrace_locations;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"IReturns any backtrace associated with the exception. This method is ;TI"Esimilar to Exception#backtrace, but the backtrace is an array of;To:RDoc::Markup::Verbatim; [I""Thread::Backtrace::Location. ;T: @format0o; ; [I"CNow, this method is not affected by Exception#set_backtrace().;T: @fileI" error.c;T:0@omit_headings_from_table_of_contents_below0I"/exception.backtrace_locations -> array ;T0[I"();T@FI"Exception;TcRDoc::NormalClass00