+ Start a Discussion
dsfsdsfs 

How to provide custom Validations and Exception Handling

Hi !

 

I have created application based on VF pages and wants to provide the validations and Exception handling. How can I provide my custom Validations & Exception?

 

 

Thank you.

 

Amol Dixit.

 

STest123STest123
global class MyException extends Exception {
    
    global Boolean isCritical { get; private set; }
    
    global MyException( String msg, Boolean isCritical)
    {
        this(msg);
        this.isCritical = isCritical;
    }
}