Package org.oa4mp.delegation.server
Class OA2JSONException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- edu.uiuc.ncsa.security.core.exceptions.GeneralException
-
- org.oa4mp.delegation.server.OA2GeneralError
-
- org.oa4mp.delegation.server.OA2JSONException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OA2ATException
public class OA2JSONException extends OA2GeneralError
Used for exceptions that must be returned as JSON.Created by Jeff Gaynor
on 8/3/23 at 4:06 PM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.oa4mp.delegation.server.OA2GeneralError
client
-
-
Constructor Summary
Constructors Constructor Description OA2JSONException()
OA2JSONException(String message)
OA2JSONException(String error, String description, int httpStatus, String state)
OA2JSONException(String error, String description, int httpStatus, String state, BaseClient client)
OA2JSONException(String message, Throwable cause)
OA2JSONException(Throwable cause)
OA2JSONException(OA2RedirectableError error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
asJSON()
net.sf.json.JSONObject
toJSON()
-
Methods inherited from class org.oa4mp.delegation.server.OA2GeneralError
addStackTraceToFM, addStackTraceToFM, getClient, getDescription, getError, getForensicMessage, getHttpStatus, getState, hasClient, hasForensicMessage, setClient, setDescription, setError, setForensicMessage, setHttpStatus, setState, setValues, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
OA2JSONException
public OA2JSONException(OA2RedirectableError error)
-
OA2JSONException
public OA2JSONException(Throwable cause)
-
OA2JSONException
public OA2JSONException()
-
OA2JSONException
public OA2JSONException(String message)
-
OA2JSONException
public OA2JSONException(String error, String description, int httpStatus, String state)
-
OA2JSONException
public OA2JSONException(String error, String description, int httpStatus, String state, BaseClient client)
-
-
Method Detail
-
asJSON
public boolean asJSON()
- Overrides:
asJSON
in classOA2GeneralError
-
toJSON
public net.sf.json.JSONObject toJSON()
-
-