Class NearbyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.codename1.nearby.NearbyException

public class NearbyException extends Exception
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 Details

  • Method Details

    • getError

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