public class VpnException

  1. Object
  2. Throwable
  3. Exception
  4. VpnException
Thrown through the failure path of every AsyncResource returned by the com.codename1.vpn APIs. getError() returns a typed VpnError so callers react without string-matching the message.

Constructors

public VpnException(VpnError error)
public VpnException(VpnError error, String message)
public VpnException(VpnError error, String message, Throwable cause)

Methods

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

Inherited methods

Constructor details

VpnException

public VpnException(VpnError error)

VpnException

public VpnException(VpnError error, String message)

VpnException

public VpnException(VpnError error, String message, Throwable cause)

Method details

getError

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