RapidApp::Responder::UserError
This "responder" takes advantage of the existing error-displaying codepaths in RapidApp to (possibly) interrupt the current AJAX request and display the message to the user.
See RapidApp::Sugar for the "die usererr" syntax.
See RapidApp::View::JSON for the logic this module ties into.
To install RapidApp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RapidApp
CPAN shell
perl -MCPAN -e shell install RapidApp
For more information on module installation, please visit the detailed CPAN module installation guide.