public class J4pRemoteException extends J4pException
| Constructor and Description |
|---|
J4pRemoteException(J4pRequest pJ4pRequest,
String pMessage,
String pErrorType,
int pStatus,
String pStacktrace,
org.json.simple.JSONObject pErrorValue)
Constructor for a remote exception
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorType()
Java class of remote exception in string representation
|
org.json.simple.JSONObject |
getErrorValue()
Get value of the remote error.
|
String |
getRemoteStackTrace()
Get the server side stack trace as string.
|
J4pRequest |
getRequest()
Get the request leading to this exception.
|
int |
getStatus()
Get status of this response (similar in meaning of HTTP status)
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic J4pRemoteException(J4pRequest pJ4pRequest, String pMessage, String pErrorType, int pStatus, String pStacktrace, org.json.simple.JSONObject pErrorValue)
pMessage - error message of the exception occurred remotelypErrorType - pStatus - status codepStacktrace - stacktrace of the remote exceptionpublic String getErrorType()
public int getStatus()
public String getRemoteStackTrace()
null
if no stack trace could be retrieved.public J4pRequest getRequest()
public org.json.simple.JSONObject getErrorValue()
Copyright © 2014. All rights reserved.