Package org.oa4mp.delegation.server.jwt
Class ScriptRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- edu.uiuc.ncsa.security.core.exceptions.GeneralException
-
- org.oa4mp.delegation.server.jwt.ScriptRuntimeException
-
- All Implemented Interfaces:
Serializable
public class ScriptRuntimeException extends edu.uiuc.ncsa.security.core.exceptions.GeneralException
If there is a user-created exception thrown by theScriptRuntimeEngine
this will be thrown. This allows for propagating error conditions inside of scripts outside whatever the runtime is.Created by Jeff Gaynor
on 10/9/20 at 8:43 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_NO_OP_CODE
-
Constructor Summary
Constructors Constructor Description ScriptRuntimeException()
ScriptRuntimeException(String message)
ScriptRuntimeException(String message, Throwable cause)
ScriptRuntimeException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
URI
getCustomErrorURI()
URI
getErrorURI()
An error URI if one is needed.int
getHttpStatus()
String
getRequestedType()
void
setCode(int code)
void
setCustomErrorURI(URI customErrorURI)
void
setErrorURI(URI errorURI)
void
setHttpStatus(int httpStatus)
void
setRequestedType(String requestedType)
String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
getRequestedType
public String getRequestedType()
-
setRequestedType
public void setRequestedType(String requestedType)
-
getHttpStatus
public int getHttpStatus()
-
setHttpStatus
public void setHttpStatus(int httpStatus)
-
getCode
public int getCode()
-
setCode
public void setCode(int code)
-
getErrorURI
public URI getErrorURI()
An error URI if one is needed. (Optional!)- Returns:
-
setErrorURI
public void setErrorURI(URI errorURI)
-
getCustomErrorURI
public URI getCustomErrorURI()
-
setCustomErrorURI
public void setCustomErrorURI(URI customErrorURI)
-
-