AgentryException class

Base class for checked exceptions that can be thrown from various methods in the AJAPI.

Syntax

public class AgentryException extends Exception

Derived classes

Members

All members of AgentryException, including inherited members.

Constructors
Modifier and Type Constructor Description
public AgentryException(String) Constructs a new AgentryException object.
public AgentryException(String, Throwable) Constructs a new AgentryException object.
public AgentryException(String, String, String, Throwable) Constructs a new AgentryException object, for methods that support throwing exceptions that may appear in the client.
public AgentryException(String, String, String) Constructs a new AgentryException object, for methods that support throwing exceptions that may appear in the client.
Methods
Modifier and Type Method Description
public final String getNotificationText() Returns the notification window text.
public final String getNotificationTitle() Returns the notification window title.
public final String getOkButtonLabel() Returns the notification window button label.

Usage

Throwing this base class from a method will generally result in an error being logged in the server event log, and the client getting a "Server error - please contact your administrator (13)" message.