Package com.enonic.xp.exception

## Class ForbiddenAccessException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.enonic.xp.exception.BaseException
        - - com.enonic.xp.exception.ForbiddenAccessException

- All Implemented Interfaces:
    `Serializable`

      @PublicApi
      public final class ForbiddenAccessException
      extends BaseException

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ForbiddenAccessException​(User user)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `User` | `getUser()` |

    - ### Methods inherited from class com.enonic.xp.exception.BaseException

      `getCode`

    - ### 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

    - #### ForbiddenAccessException

          public ForbiddenAccessException​(User user)

  - ### Method Detail

    - #### getUser

          public User getUser()