Interface AccessDeniedError

All Superinterfaces:
ErrorObject

public interface AccessDeniedError extends ErrorObject

This is the generic error code for access denied. In case of a wrong scope, an InvalidScopeError will be returned.


Example to create an instance using the builder pattern

     AccessDeniedError accessDeniedError = AccessDeniedError.builder()
             .message("{message}")
             .build()
 
  • Field Details

  • Method Details

    • of

      static AccessDeniedError of()
      factory method
      Returns:
      instance of AccessDeniedError
    • of

      static AccessDeniedError of(AccessDeniedError template)
      factory method to create a shallow copy AccessDeniedError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of AccessDeniedError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static AccessDeniedErrorBuilder builder()
      builder factory method for AccessDeniedError
      Returns:
      builder
    • builder

      static AccessDeniedErrorBuilder builder(AccessDeniedError template)
      create builder for AccessDeniedError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAccessDeniedError

      default <T> T withAccessDeniedError(Function<AccessDeniedError,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<AccessDeniedError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference