com.evernote.edam.error
Class EDAMSystemException

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

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

This exception is thrown by EDAM procedures when a call fails as a result of a problem in the service that could not be changed through caller action. errorCode: The numeric code indicating the type of error that occurred. must be one of the values of EDAMErrorCode. message: This may contain additional information about the error rateLimitDuration: Indicates the minimum number of seconds that an application should expect subsequent API calls for this user to fail. The application should not retry API requests for the user until at least this many seconds have passed. Present only when errorCode is RATE_LIMIT_REACHED,

See Also:
Serialized Form

Constructor Summary
EDAMSystemException()
           
EDAMSystemException(EDAMErrorCode errorCode)
           
EDAMSystemException(EDAMSystemException 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(EDAMSystemException other)
           
 EDAMSystemException deepCopy()
          Creates a deep copy of the object.
 boolean equals(EDAMSystemException that)
           
 boolean equals(java.lang.Object that)
           
 EDAMErrorCode getErrorCode()
           
 java.lang.String getMessage()
           
 int getRateLimitDuration()
           
 int hashCode()
           
 boolean isSetErrorCode()
          Returns true if field errorCode is set (has been asigned a value) and false otherwise
 boolean isSetMessage()
          Returns true if field message is set (has been asigned a value) and false otherwise
 boolean isSetRateLimitDuration()
          Returns true if field rateLimitDuration 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 setErrorCode(EDAMErrorCode errorCode)
           
 void setErrorCodeIsSet(boolean value)
           
 void setMessage(java.lang.String message)
           
 void setMessageIsSet(boolean value)
           
 void setRateLimitDuration(int rateLimitDuration)
           
 void setRateLimitDurationIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetErrorCode()
           
 void unsetMessage()
           
 void unsetRateLimitDuration()
           
 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, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EDAMSystemException

public EDAMSystemException()

EDAMSystemException

public EDAMSystemException(EDAMErrorCode errorCode)

EDAMSystemException

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

Method Detail

deepCopy

public EDAMSystemException 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<EDAMSystemException>

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<EDAMSystemException>

getErrorCode

public EDAMErrorCode getErrorCode()
See Also:
EDAMErrorCode

setErrorCode

public void setErrorCode(EDAMErrorCode errorCode)
See Also:
EDAMErrorCode

unsetErrorCode

public void unsetErrorCode()

isSetErrorCode

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


setErrorCodeIsSet

public void setErrorCodeIsSet(boolean value)

getMessage

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

setMessage

public void setMessage(java.lang.String message)

unsetMessage

public void unsetMessage()

isSetMessage

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


setMessageIsSet

public void setMessageIsSet(boolean value)

getRateLimitDuration

public int getRateLimitDuration()

setRateLimitDuration

public void setRateLimitDuration(int rateLimitDuration)

unsetRateLimitDuration

public void unsetRateLimitDuration()

isSetRateLimitDuration

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


setRateLimitDurationIsSet

public void setRateLimitDurationIsSet(boolean value)

equals

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

equals

public boolean equals(EDAMSystemException that)

hashCode

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

compareTo

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

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<EDAMSystemException>
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<EDAMSystemException>
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