Package com.thunken.beacon
Class BeaconFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.thunken.beacon.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.
-
Constructor Summary
Constructors Constructor Description BeaconFormatException()
Constructs aBeaconFormatException
withnull
as its error detail message.BeaconFormatException(BeaconMetaField metaField, String metaValue)
Constructs aBeaconFormatException
, using the parameters to build the detail message.BeaconFormatException(String message)
Constructs aBeaconFormatException
with the specified detail message.BeaconFormatException(Throwable cause)
Constructs aBeaconFormatException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
). -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BeaconFormatException
public BeaconFormatException()Constructs aBeaconFormatException
withnull
as its error detail message. -
BeaconFormatException
Constructs aBeaconFormatException
, 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 specifiedBeaconMetaField
.- Parameters:
metaField
- A meta field.metaValue
- A value that was incorrectly tied to the specified meta field.
-
BeaconFormatException
Constructs aBeaconFormatException
with the specified detail message.- Parameters:
message
- The detail message (which is saved for later retrieval by theThrowable.getMessage()
method).
-
BeaconFormatException
Constructs aBeaconFormatException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).- Parameters:
cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-