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 Details

    • 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 error
      errorCode - The error code associated with the error
      message - The message to show alongside the error
  • Method Details

    • 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 class Throwable
      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