Using Exception::Class
- An example from RT::Client::REST
RT::Client::REST::MalformedRTResponseException->throw(
message => "Could not read ID of modified object",
);
RT::Client::REST::MalformedRTResponseException->throw(
message => "Could not read ID of modified object",
);