RenderEmailTemplateError Class

Represents an error that the RenderEmailTemplateBodyResult object can contain.

Messaging

The following are methods for RenderEmailTemplateError.

  • getFieldName()

    Returns the name of the merge field in the error.

  • getMessage()

    Returns a message describing the error.

  • getOffset()

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

  • getStatusCode()

    Returns a Salesforce API status code.

Returns the name of the merge field in the error.

public String getFieldName()

Type: String

Returns a message describing the error.

public String getMessage()

Type: String

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

public Integer getOffset()

Type: Integer

Returns a Salesforce API status code.

public System.StatusCode getStatusCode()

Type: System.StatusCode