getCause
Returns the cause of the exception as an exception object.
getLineNumber
Returns the line number from where the exception was thrown.
getMessage
Returns the error message that displays for the user.
getStackTraceString
Returns the stack trace as a string.
getTypeName
Returns the type of exception, such as DmlException, ListException, MathException, and so on.
initCause
Sets the cause for this exception, if one has not already been set.
setMessage
Sets the error message that displays for the user.