# Class CallException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.codename1.call.CallException

public class CallException extends Exception
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.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CallException(CallError error)`
  `CallException(CallError error, String message)`
  `CallException(CallError error, String message, Throwable cause)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CallError`
  `getError()`
  Typed error code describing the failure.

  ### Methods inherited from class Throwable

  `addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## 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`.