SendEmailError Class

Represents an error that the SendEmailResult object may contain.

Namespace

Messaging

SendEmailError Methods

The following are methods for SendEmailError. All are instance methods.

  • getFields()
    A list of one or more field names. Identifies which fields in the object, if any, affected the error condition.
  • getMessage()
    The text of the error message.
  • getStatusCode()
    Returns a code that characterizes the error.
  • getTargetObjectId()
    The ID of the target record for which the error occurred.

getFields()

A list of one or more field names. Identifies which fields in the object, if any, affected the error condition.

Signature

public String[] getFields()

Return Value

Type: String[]

getMessage()

The text of the error message.

Signature

public String getMessage()

Return Value

Type: String

getStatusCode()

Returns a code that characterizes the error.

Signature

public System.StatusCode getStatusCode()

Return Value

Type: System.StatusCode

Usage

The full list of status codes is available in the WSDL file for your organization. For more information about accessing the WSDL file for your organization, see “Downloading Salesforce WSDLs and Client Authentication Certificates” in the Salesforce online help.

getTargetObjectId()

The ID of the target record for which the error occurred.

Signature

public String getTargetObjectId()

Return Value

Type: String