AnsweredAssumed Answered

Adding Custom Error Messages

Question asked by vivek.gupta4 on Jan 29, 2011
Latest reply on Aug 2, 2011 by navzjoshi00

Our customer wants us to implement a logic where no two resources can have same Office and Designation combination (Office and Designation are custom fields in resource Object). I have written the logic in Trigger to check the same (cannot write the logic in Gel Script as Gel will be invoked after the record is Saved, whereas in BEFORE INSERT trigger, I can raise an exception, and hence prevent the record from getting saved. But that appears as "System Error. Please contact Administrator" in the front end. I somewhere read that the exception number that we raise in Trigger can be mapped to an error message in some resource file. Can someone please guide me how to do that. Also, is it possible to include some unicode characters in the Error message (They want the word "Error" in Hindi prefixed before my custom Error message).