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
 
 public class AccessDeniedException extends EventStreamOperationError Thrown when an access denied exception occurs- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringERROR_CODEThe error code associated with a access denied exception
 - 
Constructor SummaryConstructors Constructor Description AccessDeniedException(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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApplicationModelType()Returns the named model type.- 
Methods inherited from class software.amazon.awssdk.eventstreamrpc.model.EventStreamOperationErrorgetErrorCode, getMessage, getService
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 - 
Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessagefromJson, isVoid, postFromJson, toPayload
 
- 
 
- 
- 
- 
Field Detail- 
ERROR_CODEpublic static final String ERROR_CODE The error code associated with a access denied exception- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
AccessDeniedExceptionpublic 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. Prefer internal logging- Parameters:
- serviceName- The name of the service that caused the exception
- message- The message to associate with the exception
 
 - 
AccessDeniedExceptionpublic AccessDeniedException(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. Prefer internal logging- Parameters:
- serviceName- The name of the service that caused the exception
 
 
- 
 - 
Method Detail- 
getApplicationModelTypepublic String getApplicationModelType() Returns the named model type. May be used for a header.- Returns:
- The named model type
 
 
- 
 
-