Using Exception::Class 

RT::Client::REST::MalformedRTResponseException->throw(
    message => "Could not read ID of modified object",
);