Package org.apache.druid.server.security
Class ForbiddenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.druid.server.security.ForbiddenException
-
- All Implemented Interfaces:
Serializable,org.apache.druid.common.exception.SanitizableException
public class ForbiddenException extends RuntimeException implements org.apache.druid.common.exception.SanitizableException
Throw this when a request is unauthorized and we want to send a 403 response back, Jersey exception mapper will take care of sending the response.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ForbiddenException()ForbiddenException(String msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorMessage()ForbiddenExceptionsanitize(Function<String,String> errorMessageTransformFunction)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ForbiddenException
public ForbiddenException()
-
ForbiddenException
public ForbiddenException(String msg)
-
-
Method Detail
-
getErrorMessage
public String getErrorMessage()
-
sanitize
public ForbiddenException sanitize(Function<String,String> errorMessageTransformFunction)
- Specified by:
sanitizein interfaceorg.apache.druid.common.exception.SanitizableException
-
-