Class NearbyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.codename1.nearby.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.-
Constructor Summary
ConstructorsConstructorDescriptionNearbyException(NearbyError error) NearbyException(NearbyError error, String message) NearbyException(NearbyError error, String message, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NearbyException
-
NearbyException
-
NearbyException
-
-
Method Details
-
getError
Typed error code describing the failure. Nevernull.
-