From cce85f097228da0d442b6dfaa92ebc45bff95837 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 21 Jan 2010 19:10:47 -0800 Subject: [PATCH] Add an exception for compile errors. --- lib/WebGUI/Exception.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/WebGUI/Exception.pm b/lib/WebGUI/Exception.pm index 634356477..2e28b1231 100644 --- a/lib/WebGUI/Exception.pm +++ b/lib/WebGUI/Exception.pm @@ -225,6 +225,13 @@ use Exception::Class ( }, + 'WebGUI::Error::Compile' => { + isa => 'WebGUI::Error', + description => "Unable to compile the requested class", + fields => ["class", "cause"], + }, + + 'WebGUI::Error::ObjectNotFound' => { isa => 'WebGUI::Error', description => "The object you were trying to retrieve does not exist.",