Class EventStreamOperationError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.eventstreamrpc.model.EventStreamOperationError
- All Implemented Interfaces:
Serializable,EventStreamJsonMessage
- Direct Known Subclasses:
AccessDeniedException,GreengrassCoreIPCError,InternalServerException,UnsupportedOperationException,ValidationException
public abstract class EventStreamOperationError
extends RuntimeException
implements EventStreamJsonMessage
Root error type returned by any continuation error message
TODO: To mimic public AWS SDK clients, any exception thrown by
a given service should inherit from it's generated model
service exception.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventStreamOperationError(String serviceName, String errorCode, String message) Creates a new EventStreamOperationError from the given service name, error code, and message -
Method Summary
Modifier and TypeMethodDescriptionLikely subclasses will have a more limited set of valid error codesLikely overridden by a specific field defined in service-operation modelReturns the name of the service that caused the errorMethods 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, getApplicationModelType, isVoid, postFromJson, toPayload
-
Constructor Details
-
EventStreamOperationError
Creates a new EventStreamOperationError from the given service name, error code, and message- Parameters:
serviceName- The service that caused the errorerrorCode- The error code associated with the errormessage- The message to show alongside the error
-
-
Method Details
-
getService
Returns the name of the service that caused the error- Returns:
- the name of the service that caused the error
-
getMessage
Likely overridden by a specific field defined in service-operation model- Overrides:
getMessagein classThrowable- Returns:
- The message associated with the error
-
getErrorCode
Likely subclasses will have a more limited set of valid error codes- Returns:
- The error code associated with the error
-