added WrongObjectType

This commit is contained in:
JT Smith 2008-02-26 22:48:10 +00:00
parent f2c0a672f4
commit d3600e31d4

View file

@ -25,6 +25,11 @@ use Exception::Class (
description => "The object you were try to retrieve does not exist.",
fields => ["id"],
},
'WebGUI::Error::WrongObjectType' => {
isa => 'WebGUI::Error',
description => "Expected to get a reference to an object type that wasn't gotten.",
fields => ["expected","got"],
},
);
@ -100,6 +105,20 @@ The id of the object to be retrieved.
=cut
=head2 WebGUI::Error::WrongObjectType
Used when looking to make sure objects are passed in that you expect. ISA WebGUI::Error.
=head3 expected
The type of object expected ("HASH", "ARRAY", "WebGUI::User", etc).
=head3 got
The object type we got.
=cut
1;