Class TerminalException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TimeoutException

public class TerminalException extends RuntimeException
When thrown in a Restate service method, it will complete the invocation with an error.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getCode

      public int getCode()
      Returns:
      status code
    • getMetadata

      public Map<String,String> getMetadata()
      Returns:
      the error metadata