public class NearbyException

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

Constructors

public NearbyException(NearbyError error)
public NearbyException(NearbyError error, String message)
public NearbyException(NearbyError error, String message, Throwable cause)

Methods

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

Inherited methods

Constructor details

NearbyException

public NearbyException(NearbyError error)

NearbyException

public NearbyException(NearbyError error, String message)

NearbyException

public NearbyException(NearbyError error, String message, Throwable cause)

Method details

getError

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