Class ElasticsearchRoleRestrictionException

All Implemented Interfaces:
Serializable, Writeable, ToXContent, ToXContentFragment

public class ElasticsearchRoleRestrictionException extends ElasticsearchSecurityException
This exception is thrown to indicate that the access has been denied because of role restrictions that an authenticated subject might have (e.g. not allowed to access certain APIs). This differs from other 403 error in sense that it's additional access control that is enforced after role is resolved and before permissions are checked.
See Also:
  • Constructor Details

    • ElasticsearchRoleRestrictionException

      public ElasticsearchRoleRestrictionException(String msg, Throwable cause, Object... args)
    • ElasticsearchRoleRestrictionException

      public ElasticsearchRoleRestrictionException(String msg, Object... args)
    • ElasticsearchRoleRestrictionException

      public ElasticsearchRoleRestrictionException(StreamInput in) throws IOException
      Throws:
      IOException