Mac::Errors is a Perl module with constants for Mac error codes.
SYNOPSIS
use Mac::Errors qw(openErr);
if( $value == openErr ) { ... }
my $error = $MacErrors{ $symbol }; # -- OR -- my $error = $MacErrors{ $number };
my $symbol = $error->symbol; my $number = $error->number; my $desc = $error->description;
# in MacPerl, $^E is meaningful, and we tie $MacError to it use Mac::Errors qw( $MacError );
open FILE, $foo or die $^E; # error number open FILE, $foo or die $MacError; # gets description from $^E
The %MacErrors hash indexes error information by the error number or symbol. Each value is a Mac::Errors object which has the symbol, number, and description.
The $MacError scalar performs some tied magic to translate MacPerl's $^E to the error text.
Product's homepage
Requirements:
· Perl