In my monorails project. I use attribute Rescue
[Rescue("generalerror", typeof(System.Exception))]
but the error 500 “Error processing action” still is thrown. How can I hide it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hm, do you have a view called “generalerror.vm” or equivalent? (.vm is NVelocity suffix).
If you don’t specify ExceptionType, then it will catch it for all exceptions as well, so you don’t need to specify it explicitly.
If your rescue is on a separate controller, then you need this syntax:
Where “Index” is the action on RescueController that would be invoked upon failure.