added WrongObjectType
This commit is contained in:
parent
f2c0a672f4
commit
d3600e31d4
1 changed files with 19 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue