Class 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 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:
        sanitize in interface org.apache.druid.common.exception.SanitizableException