com.evernote.edam.error
Class EDAMNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.evernote.edam.error.EDAMNotFoundException
All Implemented Interfaces:
com.evernote.thrift.TBase<EDAMNotFoundException>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<EDAMNotFoundException>

public class EDAMNotFoundException
extends java.lang.Exception
implements com.evernote.thrift.TBase<EDAMNotFoundException>, java.io.Serializable, java.lang.Cloneable

This exception is thrown by EDAM procedures when a caller asks to perform an operation on an object that does not exist. This may be thrown based on an invalid primary identifier (e.g. a bad GUID), or when the caller refers to an object by another unique identifier (e.g. a User's email address). identifier: A description of the object that was not found on the server. For example, "Note.notebookGuid" when a caller attempts to create a note in a notebook that does not exist in the user's account. key: The value passed from the client in the identifier, which was not found. For example, the GUID that was not found.

See Also:
Serialized Form

Constructor Summary
EDAMNotFoundException()
           
EDAMNotFoundException(EDAMNotFoundException other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(EDAMNotFoundException other)
           
 EDAMNotFoundException deepCopy()
          Creates a deep copy of the object.
 boolean equals(EDAMNotFoundException that)
           
 boolean equals(java.lang.Object that)
           
 java.lang.String getIdentifier()
           
 java.lang.String getKey()
           
 int hashCode()
           
 boolean isSetIdentifier()
          Returns true if field identifier is set (has been asigned a value) and false otherwise
 boolean isSetKey()
          Returns true if field key is set (has been asigned a value) and false otherwise
 void read(com.evernote.thrift.protocol.TProtocol iprot)
          Reads an instance of the object from the given protocol.
 void setIdentifier(java.lang.String identifier)
           
 void setIdentifierIsSet(boolean value)
           
 void setKey(java.lang.String key)
           
 void setKeyIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetIdentifier()
           
 void unsetKey()
           
 void validate()
           
 void write(com.evernote.thrift.protocol.TProtocol oprot)
          Writes the object to the given protocol.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EDAMNotFoundException

public EDAMNotFoundException()

EDAMNotFoundException

public EDAMNotFoundException(EDAMNotFoundException other)
Performs a deep copy on other.

Method Detail

deepCopy

public EDAMNotFoundException deepCopy()
Description copied from interface: com.evernote.thrift.TBase
Creates a deep copy of the object.

Specified by:
deepCopy in interface com.evernote.thrift.TBase<EDAMNotFoundException>

clear

public void clear()
Description copied from interface: com.evernote.thrift.TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface com.evernote.thrift.TBase<EDAMNotFoundException>

getIdentifier

public java.lang.String getIdentifier()

setIdentifier

public void setIdentifier(java.lang.String identifier)

unsetIdentifier

public void unsetIdentifier()

isSetIdentifier

public boolean isSetIdentifier()
Returns true if field identifier is set (has been asigned a value) and false otherwise


setIdentifierIsSet

public void setIdentifierIsSet(boolean value)

getKey

public java.lang.String getKey()

setKey

public void setKey(java.lang.String key)

unsetKey

public void unsetKey()

isSetKey

public boolean isSetKey()
Returns true if field key is set (has been asigned a value) and false otherwise


setKeyIsSet

public void setKeyIsSet(boolean value)

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(EDAMNotFoundException that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(EDAMNotFoundException other)
Specified by:
compareTo in interface java.lang.Comparable<EDAMNotFoundException>

read

public void read(com.evernote.thrift.protocol.TProtocol iprot)
          throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Reads an instance of the object from the given protocol.

Specified by:
read in interface com.evernote.thrift.TBase<EDAMNotFoundException>
Parameters:
iprot - Input protocol
Throws:
com.evernote.thrift.TException

write

public void write(com.evernote.thrift.protocol.TProtocol oprot)
           throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Writes the object to the given protocol.

Specified by:
write in interface com.evernote.thrift.TBase<EDAMNotFoundException>
Parameters:
oprot - Output protocol
Throws:
com.evernote.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

validate

public void validate()
              throws com.evernote.thrift.TException
Throws:
com.evernote.thrift.TException