public class J4pRemoteException extends J4pException
Constructor and Description |
---|
J4pRemoteException(J4pRequest pJ4pRequest,
org.json.simple.JSONObject pJsonRespObject) |
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.
|
org.json.simple.JSONObject |
getResponse()
Get the response string, or null if unavailable
|
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, toString
public J4pRemoteException(J4pRequest pJ4pRequest, String pMessage, String pErrorType, int pStatus, String pStacktrace, org.json.simple.JSONObject pErrorValue)
pMessage
- error message of the exception occurred remotelypErrorType
- kind of error usedpStatus
- status codepStacktrace
- stacktrace of the remote exceptionpublic J4pRemoteException(J4pRequest pJ4pRequest, org.json.simple.JSONObject pJsonRespObject)
public 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()
public org.json.simple.JSONObject getResponse()
Copyright © 2019. All rights reserved.