LipmError::ObjectException - a class to define specific exception of Objects
throw LipmError::ObjectException( $class_name, KEYWORD, -text => $msg ); throw LipmError::ObjectException( $obj, KEYWORD, -text => $msg ); catch LipmError::ObjectException with {...}
With this class you can describe all type of exception encountered by object.
- try to access to an attribute that doesn't exist - an attribute doesn't have a correct value
Sebastien Letort : sebastien.letort@toulouse.inra.fr
Title : new Usage : my $o_err = new LipmError::ObjectException( $obj|$class_name, KEYWORD, -text => $msg); Prerequisite : it's better for an error to be catch ! Object : Constructor, initialize the object Returns : the object. Args : none Globals : none