David Shao Lin Zhuo

NAME

Google::Checkout::General::Error

SYNOPSIS

  use Google::Checkout::General::Error;

  my $error = Google::Checkout::General::Error->new(-1, "Error message");
  print "$error\n";

DESCRIPTION

Module to manage errors. All errors are handled by this object.

new ERROR_CODE, ERROR_STRING

Constructor. Takes an error code and string. The '""' string operator is overloaded so it's possible to just 'print $error'.

code

Returns the error code.

string

Returns the error string.

COPYRIGHT

Copyright 2006 Google. All rights reserved.

SEE ALSO