Create a bad-request Java Exception
Create a bad-request Java Exception
Create a bad-request Java Exception
Create a generic error Java Exception.
a Java Exception with the 500 status code and an errorKey which can be used by module-specific handlers to identify special errors thrown by scripts.
For example, the OAuth module uses this method in default scripts to allow the OAuthTokenProcedureRunner class to return a OAuth error_code and error message determined by the token procedure.
that might be interpreted by the handler class in order to provide module-specific error handling behaviour. Mapped to se.curity.identityserver.errors.SystemRuntimeException#_errorCode.
error message.
Create a redirect Java Exception. Redirects a request to another location. The status code that is used when redirecting is 302, Moved Temporarily.
the URI of the location to be redirected to.
Create a redirect Java Exception. Redirects a request to another location using a certain status code. It is an error to use a status code outside the [300..400] range.
the URI of the location to be redirected to.
Create a redirect Java Exception. Redirects a request to another location. The status code that is used when redirecting is 302, Moved Temporarily.
setting the message has been deprecated. Use redirectException(string) instead.
an unused value that will be ignored
the URI of the location to be redirected to.
Redirects a request to another location, adding parameters to the query string of that URI.
an exception that can be thrown to redirect to the given URI
setting the message and the query string arguments has been deprecated. Use redirectException(string) instead, passing the query string arguments in the redirectUri parameter.
an unused value that will be ignored
the URI of the location to be redirected to
a map of query string parameters to add to the redirect URI or [null] if none should be added
Create a service-unavailable-error Java Exception
A Factory of Exceptions that may be thrown by scripts. Using this factory makes it easier for scripts to throw Java Exceptions that are recognized by the system.