|
||||||||
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.yosokumo.core.ServiceException
public class ServiceException
Encapsulates all exceptions which can be thrown by the Yosokumo Service.
Constructor Summary | |
---|---|
ServiceException(java.lang.String message)
Constructs a new exception with the specified detail message. |
|
ServiceException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause. |
|
ServiceException(java.lang.String message,
java.lang.Throwable cause,
int statusCode,
java.lang.String failedMethodName)
Constructs a new exception with the specified detail message, cause, status code and failed method name. |
Method Summary | |
---|---|
java.lang.String |
getFailedMethodName()
Return the name of the Service method which failed with this exception. |
int |
getStatusCode()
Return HTTP status code. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceException(java.lang.String message)
Throwable.initCause(java.lang.Throwable)
.
message
- the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage()
method.public ServiceException(java.lang.String message, java.lang.Throwable cause)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method.cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent
or unknown.)public ServiceException(java.lang.String message, java.lang.Throwable cause, int statusCode, java.lang.String failedMethodName)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method.cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent
or unknown.)Method Detail |
---|
public int getStatusCode()
public java.lang.String getFailedMethodName()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |