public class CallException

  1. Object
  2. Throwable
  3. Exception
  4. CallException
Thrown through the failure path of every AsyncResource returned by the com.codename1.call APIs, and passed to the failure callbacks of the session and directory listeners. getError() returns a typed CallError so callers react without string-matching the message.

Constructors

public CallException(CallError error)
public CallException(CallError error, String message)
public CallException(CallError error, String message, Throwable cause)

Methods

public CallError getError()Typed error code describing the failure.

Inherited methods

Constructor details

CallException

public CallException(CallError error)

CallException

public CallException(CallError error, String message)

CallException

public CallException(CallError error, String message, Throwable cause)

Method details

getError

public CallError getError()
Typed error code describing the failure. Never null.