Class UnauthorizedException

  • All Implemented Interfaces:
    Serializable

    @ResponseStatus(BAD_REQUEST)
    public class UnauthorizedException
    extends RuntimeException
    Exception thrown when user tries to access an element that he does not own
    See Also:
    Serialized Form
    • Constructor Detail

      • UnauthorizedException

        public UnauthorizedException​(String message)
        Creates new instance with given message
        Parameters:
        message - exception message