|
||||||||
| 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.echonest.api.v4.EchoNestException
public class EchoNestException
Represents echo nest oriented exceptions
| Field Summary | |
|---|---|
static int |
CLIENT_SERVER_INCONSISTENCY
the client API expected something different from the server |
static int |
ERR_ACCESS_DENIED
API Key is not allowed to call this method |
static int |
ERR_INVALID_PARAMETER
access to an invalid field |
static int |
ERR_MISSING_OR_INVALID_API_KEY
Missing/Invalid API Key |
static int |
ERR_MISSING_PARAMETER
missing parameter |
static int |
ERR_NO_KEY
no api key was given |
static int |
ERR_RATE_LIMIT_EXCEEDED
Rate limit exceeded |
static int |
SUCCESS
success |
| Constructor Summary | |
|---|---|
EchoNestException(int code,
java.lang.String message)
Creates an exception |
|
EchoNestException(java.lang.Throwable arg0)
Creates an exception |
|
| Method Summary | |
|---|---|
int |
getCode()
Gets the error code |
java.lang.String |
getMessage()
Gets the exception message |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SUCCESS
public static final int ERR_MISSING_OR_INVALID_API_KEY
public static final int ERR_ACCESS_DENIED
public static final int ERR_RATE_LIMIT_EXCEEDED
public static final int ERR_MISSING_PARAMETER
public static final int ERR_INVALID_PARAMETER
public static final int CLIENT_SERVER_INCONSISTENCY
public static final int ERR_NO_KEY
| Constructor Detail |
|---|
public EchoNestException(int code,
java.lang.String message)
code - the error codemessage - a description of the exceptionpublic EchoNestException(java.lang.Throwable arg0)
arg0 - the wrapped throwable| Method Detail |
|---|
public int getCode()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||