Package org.wso2.carbon.rest.api

## Class UnauthorizedAccessException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.wso2.carbon.rest.api.UnauthorizedAccessException

- All Implemented Interfaces:
    `Serializable`

      public class UnauthorizedAccessException
      extends RuntimeException

  This class represents an exception, which is intended to be thrown when some client code accesses a portion of business logic, i.e method or a block of code, that the it is not authorized or privileged to access.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `UnauthorizedAccessException​(String message)` |
    `UnauthorizedAccessException​(String message, Throwable cause)` |
    `UnauthorizedAccessException​(Throwable cause)` |

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### UnauthorizedAccessException

          public UnauthorizedAccessException​(String message,
                                             Throwable cause)

    - #### UnauthorizedAccessException

          public UnauthorizedAccessException​(Throwable cause)

    - #### UnauthorizedAccessException

          public UnauthorizedAccessException​(String message)