net.opentsdb.uid
Class NoSuchUniqueId
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.NoSuchElementException
net.opentsdb.uid.NoSuchUniqueId
- All Implemented Interfaces:
- Serializable
public final class NoSuchUniqueId
- extends NoSuchElementException
Exception used when a Unique ID can't be found.
- See Also:
UniqueIdInterface
,
Serialized Form
Method Summary |
byte[] |
id()
Returns the unique ID that couldn't be found. |
String |
kind()
Returns the kind of unique ID that couldn't be found. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NoSuchUniqueId
public NoSuchUniqueId(String kind,
byte[] id)
- Constructor.
- Parameters:
kind
- The kind of unique ID that triggered the exception.id
- The ID that couldn't be found.
kind
public String kind()
- Returns the kind of unique ID that couldn't be found.
id
public byte[] id()
- Returns the unique ID that couldn't be found.