NAME
MVC::Neaf::Exception - Exception class for Not Even A Framework.
DESCRIPTION
Currently internal signalling or MVC::Neaf is based on the exception mechanism. To avoid collisions with user's exceptions or Perl errors, these internal exceptions are blessed into this class.
Please see the neaf_err() function in MVC::Neaf.
METHODS
new( 500 )
new( %options )
Returns a new exception object.
status()
Return error code.
is_sudden()
Tells whether error was unexpected.
EXPERIMENTAL. Name and meaning subject to change.
message()
Error -message, if that was given.
EXPERIMENTAL. Name and meaning subject to change.
as_string()
Stringify. Result is guaranteed to start with MVC::Neaf.
TO_JSON()
Converts exception to JSON, so that it doesn't frighten View::JS.