Self-Service Portal???

Starting with Spring ’12, the Self-Service portal isn’t available for new orgs. Existing orgs continue to have access to the Self-Service portal.

Creating Custom Exceptions

Since we can’t throw built-in Apex exceptions but can only catch them, we can create custom exceptions to throw in your methods. That way, we can also specify detailed error messages and have more custom error handling in  catch blocks.
To create  custom exception class, extend the built-in Exception class and make sure your class name ends with the word Exception. Append extends Exception after your class declaration as follows.
-------------------------------------------------

public class MyException extends Exception {}

------------------------------
public class Utility {
   
    public static void insertMethod() {
        try {
            
        } catch(DmlException e) {
           
            throw new MyException (
                'my Custom exception message.', e);
        }
    }
}

Counters