Class 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 the ScriptRuntimeEngine 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 Detail

      • DEFAULT_NO_OP_CODE

        public static int DEFAULT_NO_OP_CODE
    • Constructor Detail

      • ScriptRuntimeException

        public ScriptRuntimeException()
      • ScriptRuntimeException

        public ScriptRuntimeException​(Throwable cause)
      • ScriptRuntimeException

        public ScriptRuntimeException​(String message)
      • ScriptRuntimeException

        public ScriptRuntimeException​(String message,
                                      Throwable cause)
    • 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)