Throw an exception in all wobjects if the main template (used by view)
has been deleted.
This commit is contained in:
parent
62b776d55a
commit
80dfb9ffd0
36 changed files with 350 additions and 97 deletions
|
|
@ -44,6 +44,11 @@ use Exception::Class (
|
|||
description => "The object you were trying to retrieve does not exist.",
|
||||
fields => ["id"],
|
||||
},
|
||||
'WebGUI::Error::ObjectNotFound::Template' => {
|
||||
isa => 'WebGUI::Error',
|
||||
description => "The template an asset was trying to retrieve does not exist.",
|
||||
fields => [qw/templateId assetId/],
|
||||
},
|
||||
'WebGUI::Error::InvalidFile' => {
|
||||
isa => 'WebGUI::Error',
|
||||
description => "The file you have provided has errors.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue