RenderEmailTemplateError Class

Represents an error that the RenderEmailTemplateBodyResult object can contain.

Namespace

Messaging

RenderEmailTemplateError Methods

The following are methods for RenderEmailTemplateError.

getFieldName()

Returns the name of the merge field in the error.

Signature

public String getFieldName()

Return Value

Type: String

getMessage()

Returns a message describing the error.

Signature

public String getMessage()

Return Value

Type: String

getOffset()

Returns the offset within the supplied body text where the error was discovered. If the offset cannot be determined, -1 is returned.

Signature

public Integer getOffset()

Return Value

Type: Integer

getStatusCode()

Returns a Salesforce API status code.

Signature

public System.StatusCode getStatusCode()

Return Value

Type: System.StatusCode