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.GeneralExceptionIf there is a user-created exception thrown by theScriptRuntimeEnginethis 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 intDEFAULT_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 intgetCode()URIgetCustomErrorURI()URIgetErrorURI()An error URI if one is needed.intgetHttpStatus()StringgetRequestedType()voidsetCode(int code)voidsetCustomErrorURI(URI customErrorURI)voidsetErrorURI(URI errorURI)voidsetHttpStatus(int httpStatus)voidsetRequestedType(String requestedType)StringtoString()-
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)
-
-