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, org.oa4mp.delegation.common.storage.clients.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 booleanasJSON()net.sf.json.JSONObjecttoJSON()-
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)
-
-
Method Detail
-
asJSON
public boolean asJSON()
- Overrides:
asJSONin classOA2GeneralError
-
toJSON
public net.sf.json.JSONObject toJSON()
-
-