|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.evernote.edam.error.EDAMSystemException
public class EDAMSystemException
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,
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 |
---|
public EDAMSystemException()
public EDAMSystemException(EDAMErrorCode errorCode)
public EDAMSystemException(EDAMSystemException other)
Method Detail |
---|
public EDAMSystemException deepCopy()
com.evernote.thrift.TBase
deepCopy
in interface com.evernote.thrift.TBase<EDAMSystemException>
public void clear()
com.evernote.thrift.TBase
clear
in interface com.evernote.thrift.TBase<EDAMSystemException>
public EDAMErrorCode getErrorCode()
EDAMErrorCode
public void setErrorCode(EDAMErrorCode errorCode)
EDAMErrorCode
public void unsetErrorCode()
public boolean isSetErrorCode()
public void setErrorCodeIsSet(boolean value)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void setMessage(java.lang.String message)
public void unsetMessage()
public boolean isSetMessage()
public void setMessageIsSet(boolean value)
public int getRateLimitDuration()
public void setRateLimitDuration(int rateLimitDuration)
public void unsetRateLimitDuration()
public boolean isSetRateLimitDuration()
public void setRateLimitDurationIsSet(boolean value)
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean equals(EDAMSystemException that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(EDAMSystemException other)
compareTo
in interface java.lang.Comparable<EDAMSystemException>
public void read(com.evernote.thrift.protocol.TProtocol iprot) throws com.evernote.thrift.TException
com.evernote.thrift.TBase
read
in interface com.evernote.thrift.TBase<EDAMSystemException>
iprot
- Input protocol
com.evernote.thrift.TException
public void write(com.evernote.thrift.protocol.TProtocol oprot) throws com.evernote.thrift.TException
com.evernote.thrift.TBase
write
in interface com.evernote.thrift.TBase<EDAMSystemException>
oprot
- Output protocol
com.evernote.thrift.TException
public java.lang.String toString()
toString
in class java.lang.Throwable
public void validate() throws com.evernote.thrift.TException
com.evernote.thrift.TException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |