Class BeaconFormatException

All Implemented Interfaces:
Serializable

public class BeaconFormatException
extends RuntimeException
Thrown to indicate that a method has been passed data that violates the BEACON specification.
See Also:
https://gbv.github.io/beaconspec/beacon.html#beacon-format, Serialized Form
  • Constructor Details

    • BeaconFormatException

      public BeaconFormatException()
      Constructs a BeaconFormatException with null as its error detail message.
    • BeaconFormatException

      public BeaconFormatException​(BeaconMetaField metaField, String metaValue)
      Constructs a BeaconFormatException, using the parameters to build the detail message.

      This constructor is typically used when a method has been passed a String value that violates the BEACON specification for the specified BeaconMetaField.

      Parameters:
      metaField - A meta field.
      metaValue - A value that was incorrectly tied to the specified meta field.
    • BeaconFormatException

      public BeaconFormatException​(String message)
      Constructs a BeaconFormatException with the specified detail message.
      Parameters:
      message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
    • BeaconFormatException

      public BeaconFormatException​(Throwable cause)
      Constructs a BeaconFormatException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
      Parameters:
      cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)