|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.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(Object that)
|
EDAMErrorCode |
getErrorCode()
|
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(TProtocol iprot)
Reads an instance of the object from the given protocol. |
void |
setErrorCode(EDAMErrorCode errorCode)
|
void |
setErrorCodeIsSet(boolean value)
|
void |
setMessage(String message)
|
void |
setMessageIsSet(boolean value)
|
void |
setRateLimitDuration(int rateLimitDuration)
|
void |
setRateLimitDurationIsSet(boolean value)
|
String |
toString()
|
void |
unsetErrorCode()
|
void |
unsetMessage()
|
void |
unsetRateLimitDuration()
|
void |
validate()
|
void |
write(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()
TBase
deepCopy in interface TBase<EDAMSystemException>public void clear()
TBase
clear in interface TBase<EDAMSystemException>public EDAMErrorCode getErrorCode()
EDAMErrorCodepublic void setErrorCode(EDAMErrorCode errorCode)
EDAMErrorCodepublic void unsetErrorCode()
public boolean isSetErrorCode()
public void setErrorCodeIsSet(boolean value)
public String getMessage()
getMessage in class Throwablepublic void setMessage(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(Object that)
equals in class Objectpublic boolean equals(EDAMSystemException that)
public int hashCode()
hashCode in class Objectpublic int compareTo(EDAMSystemException other)
compareTo in interface Comparable<EDAMSystemException>
public void read(TProtocol iprot)
throws TException
TBase
read in interface TBase<EDAMSystemException>iprot - Input protocol
TException
public void write(TProtocol oprot)
throws TException
TBase
write in interface TBase<EDAMSystemException>oprot - Output protocol
TExceptionpublic String toString()
toString in class Throwable
public void validate()
throws TException
TException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||