net.opentsdb.uid
Class NoSuchUniqueId

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.util.NoSuchElementException
                  extended by 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

Constructor Summary
NoSuchUniqueId(String kind, byte[] id)
          Constructor.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.