Exception::System 0.0601
Sponsored Links
Exception::System 0.0601 Ranking & Summary
File size:
0.010 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
897
Date added:
2007-05-23
Publisher:
Piotr Roszatycki
Exception::System 0.0601 description
Exception::System is the exception class for system or library calls.
SYNOPSIS
# Loaded automatically if used as Exception::Bases argument
use Exception::Base
Exception::System,
Exception::File => { isa => Exception::System };
try Exception::Base eval {
my $file = "/notfound";
open FILE, $file
or throw Exception::File message=>"Can not open file: $file",
file=>$file;
};
if (catch Exception::System my $e) {
if ($e->isa(Exception::File)) { warn "File error:".$e->{errstr}; }
if ($e->with(errname=>ENOENT)) { warn "Catched not found error"; }
}
This class extends standard Exception::Base with handling system or library errors. The additional fields of the exception object are filled on throw and contain the error message and error codes.
FIELDS
Class fields are implemented as values of blessed hash.
errstr (ro)
Contains the system error string fetched at exception throw. It is the part of the string representing the exception object. It is the same as $! variable in string context.
eval { throw Exception::System message=>"Message"; };
catch Exception::System my $e
and print $e->{errstr};
errstros (ro)
Contains the extended system error string fetched at exception throw. It is the same as $^E variable.
eval { throw Exception::System message=>"Message"; };
catch Exception::System my $e and $e->{errstros} ne $e->{errstr}
and print $e->{errstros};
errno (ro)
Contains the system error number fetched at exception throw. It is the same as $! variable in numeric context.
eval { throw Exception::System message=>"Message"; };
errname (ro)
Contains the system error constant from the system error.h include file.
eval { throw Exception::System message=>"Message"; };
catch Exception::System my $e and $e->{errname} eq ENOENT
and $e->throw;
METHODS
stringify([$verbosity[, $message]])
Returns the string representation of exception object. The format of output is "message: error string".
eval { open F, "/notexisting"; throw Exception::System; };
print $@->stringify(1);
print "$@";
SYNOPSIS
# Loaded automatically if used as Exception::Bases argument
use Exception::Base
Exception::System,
Exception::File => { isa => Exception::System };
try Exception::Base eval {
my $file = "/notfound";
open FILE, $file
or throw Exception::File message=>"Can not open file: $file",
file=>$file;
};
if (catch Exception::System my $e) {
if ($e->isa(Exception::File)) { warn "File error:".$e->{errstr}; }
if ($e->with(errname=>ENOENT)) { warn "Catched not found error"; }
}
This class extends standard Exception::Base with handling system or library errors. The additional fields of the exception object are filled on throw and contain the error message and error codes.
FIELDS
Class fields are implemented as values of blessed hash.
errstr (ro)
Contains the system error string fetched at exception throw. It is the part of the string representing the exception object. It is the same as $! variable in string context.
eval { throw Exception::System message=>"Message"; };
catch Exception::System my $e
and print $e->{errstr};
errstros (ro)
Contains the extended system error string fetched at exception throw. It is the same as $^E variable.
eval { throw Exception::System message=>"Message"; };
catch Exception::System my $e and $e->{errstros} ne $e->{errstr}
and print $e->{errstros};
errno (ro)
Contains the system error number fetched at exception throw. It is the same as $! variable in numeric context.
eval { throw Exception::System message=>"Message"; };
errname (ro)
Contains the system error constant from the system error.h include file.
eval { throw Exception::System message=>"Message"; };
catch Exception::System my $e and $e->{errname} eq ENOENT
and $e->throw;
METHODS
stringify([$verbosity[, $message]])
Returns the string representation of exception object. The format of output is "message: error string".
eval { open F, "/notexisting"; throw Exception::System; };
print $@->stringify(1);
print "$@";
Exception::System 0.0601 Screenshot
Exception::System 0.0601 Keywords
System 0.0601
system error
library calls
exception class
throw
message
exception
system
E-
error
Exception::System
ExceptionSystem
Exception::System 0.0601
Libraries
Programming
Bookmark Exception::System 0.0601
Exception::System 0.0601 Copyright
WareSeeker periodically updates pricing and software information of Exception::System 0.0601 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Exception::System 0.0601 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
error loading operating system
error 5
message doesn't exist
systemax
exceptional customer service
throw blankets
solar system
runtime error
text message
council for exceptional children
how to throw a curveball
system sensor
exceptional innovation
message center
error messages
throwback jersey
system of a down
throw pillows
Related Software
Exception::Base is a Perl module with lightweight exceptions. Free Download
Exception::Class::TCF is a Java/C++ style exception handling. Free Download
Fatal::Exception - succeed or throw exception. Free Download
Exceptions in C implements powerful and customizable exceptions for the C programming language. Free Download
Exception::Class is a Perl module that allows you to declare real exception classes in Perl. Free Download
Test::Exception is a Perl module to test exception based code. Free Download
cexcept (pronounced see except in English) is a package providing a Try/Catch/Throw exception handling interface for ANSI C. Free Download
Java::JCR::Exception is a Perl wrapper for repository exceptions. Free Download
Latest Software
Popular Software
Favourite Software