function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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;
    }
}