Class ServiceNotAuthorizedException

  • All Implemented Interfaces:
    Serializable

    public class ServiceNotAuthorizedException
    extends Exception
    Indicates that the requested service requires authentication that the current user has not provided.

    This corresponds to response code HttpServletResponse.SC_UNAUTHORIZED.

    See Also:
    Serialized Form
    • Constructor Detail

      • ServiceNotAuthorizedException

        public ServiceNotAuthorizedException​(String message,
                                             Throwable cause)
        Constructor for ServiceNotAuthorizedException.
        Parameters:
        message - error message
        cause - a Throwable object.
        Since:
        4.1
      • ServiceNotAuthorizedException

        public ServiceNotAuthorizedException​(String message)
        Constructor for ServiceNotAuthorizedException.
        Parameters:
        message - error message
        Since:
        4.1
      • ServiceNotAuthorizedException

        public ServiceNotAuthorizedException()
        Indicates that the requested service requires authentication.