Class MoleculerError

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BrokerOptionsError, GracefulStopTimeoutError, InvalidPacketDataError, ListenerNotAvailableError, MaxCallLevelError, MoleculerClientError, MoleculerRetryableError, ProtocolVersionMismatchError, RequestSkippedError, ServiceSchemaError

public class MoleculerError extends RuntimeException
Custom Moleculer Exception class.
See Also:
  • Field Details

    • stack

      protected final String stack
    • name

      protected final String name
    • nodeID

      protected final String nodeID
    • retryable

      protected final boolean retryable
    • code

      protected final int code
    • type

      protected final String type
    • data

      protected final io.datatree.Tree data
    • stackTrace

      protected String stackTrace
  • Constructor Details

    • MoleculerError

      public MoleculerError(String message, String nodeID, boolean retryable)
    • MoleculerError

      public MoleculerError(String message, String nodeID, boolean retryable, int code)
    • MoleculerError

      public MoleculerError(String message, String nodeID, boolean retryable, int code, io.datatree.Tree data)
    • MoleculerError

      public MoleculerError(String message, String nodeID, boolean retryable, int code, String type, io.datatree.Tree data)
    • MoleculerError

      public MoleculerError(String message, Throwable cause, String nodeID, boolean retryable, int code, String type, io.datatree.Tree data)
    • MoleculerError

      public MoleculerError(String message, Throwable cause, String name, String nodeID, boolean retryable, int code, String type, Object... data)
    • MoleculerError

      public MoleculerError(io.datatree.Tree payload)
  • Method Details

    • printStackTrace

      public void printStackTrace()
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintWriter s)
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintStream s)
      Overrides:
      printStackTrace in class Throwable
    • toTree

      public io.datatree.Tree toTree()
    • toTree

      public void toTree(io.datatree.Tree target)
    • getStack

      public String getStack()
    • isRemote

      public boolean isRemote()
    • getName

      public String getName()
    • isRetryable

      public boolean isRetryable()
    • getCode

      public int getCode()
    • getType

      public String getType()
    • getData

      public io.datatree.Tree getData()