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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventStreamOperationError(String serviceName, String errorCode, String message)
Creates a new EventStreamOperationError from the given service name, error code, and message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorCode()
Likely subclasses will have a more limited set of valid error codesString
getMessage()
Likely overridden by a specific field defined in service-operation modelString
getService()
Returns the name of the service that caused the error-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage
fromJson, getApplicationModelType, isVoid, postFromJson, toPayload
-
-
-
-
Constructor Detail
-
EventStreamOperationError
public EventStreamOperationError(String serviceName, String errorCode, String message)
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 Detail
-
getService
public String getService()
Returns the name of the service that caused the error- Returns:
- the name of the service that caused the error
-
getMessage
public String getMessage()
Likely overridden by a specific field defined in service-operation model- Overrides:
getMessage
in classThrowable
- Returns:
- The message associated with the error
-
getErrorCode
public String getErrorCode()
Likely subclasses will have a more limited set of valid error codes- Returns:
- The error code associated with the error
-
-