Database Error Object Methods

A Database.error object contains information about an error that occurred, during a DML operation or other operation.

All DML operations that are executed with their database system method form return an error object if they fail.

All error objects have access to the following methods:

Name Arguments Return Type Description
getMessage String Returns the error message text.
getStatusCode StatusCode Returns a code that characterizes the error. The full list of status codes is available in the WSDL file for your organization (see Downloading Salesforce WSDLs and Client Authentication Certificates in the Salesforce online help.)
© Copyright 2000–2012 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.