Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.eventstreamrpc.model.EventStreamOperationError
software.amazon.awssdk.eventstreamrpc.model.AccessDeniedException
- All Implemented Interfaces:
Serializable,EventStreamJsonMessage
Thrown when an access denied exception occurs
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe error code associated with a access denied exception -
Constructor Summary
ConstructorsConstructorDescriptionAccessDeniedException(String serviceName) Message constructor may reveal what operation or resource was denied access or the principal/authN that was rejected Do not overexpose reason or logic for AccessDenied.AccessDeniedException(String serviceName, String message) Message constructor may reveal what operation or resource was denied access or the principal/authN that was rejected Do not overexpose reason or logic for AccessDenied. -
Method Summary
Methods inherited from class software.amazon.awssdk.eventstreamrpc.model.EventStreamOperationError
getErrorCode, getMessage, getServiceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage
fromJson, isVoid, postFromJson, toPayload
-
Field Details
-
ERROR_CODE
The error code associated with a access denied exception- See Also:
-
-
Constructor Details
-
AccessDeniedException
Message constructor may reveal what operation or resource was denied access or the principal/authN that was rejected Do not overexpose reason or logic for AccessDenied. Prefer internal logging- Parameters:
serviceName- The name of the service that caused the exceptionmessage- The message to associate with the exception
-
AccessDeniedException
Message constructor may reveal what operation or resource was denied access or the principal/authN that was rejected Do not overexpose reason or logic for AccessDenied. Prefer internal logging- Parameters:
serviceName- The name of the service that caused the exception
-
-
Method Details
-
getApplicationModelType
Returns the named model type. May be used for a header.- Returns:
- The named model type
-