Previous Topic: Core Methods in the Result Class

Next Topic: Property Class

Exception Class

The Exception class, SmApiException, contains the result class SmApiResult. The following packages use SmApiException:

Method

Description

getFacility()

Retrieves the facility code of the exception.

getReason()

Retrieves the reason code of the exception.

getSeverity()

Retrieves the severity code of the exception.

getStatus()

Retrieves the status code of the exception.

toString()

Returns a string representation of the SmApiResult object.

The Exception class extends java.lang.Exception. By calling the inherited getMessage() method, you can retrieve the message associated with the exception.