Class EventStreamOperationError

    • 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 error
        errorCode - The error code associated with the error
        message - 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 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