Class MoleculerError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
services.moleculer.error.MoleculerError
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BrokerOptionsError, GracefulStopTimeoutError, InvalidPacketDataError, ListenerNotAvailableError, MaxCallLevelError, MoleculerClientError, MoleculerRetryableError, ProtocolVersionMismatchError, RequestSkippedError, ServiceSchemaError
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMoleculerError(io.datatree.Tree payload) MoleculerError(String message, String nodeID, boolean retryable) MoleculerError(String message, String nodeID, boolean retryable, int code) MoleculerError(String message, String nodeID, boolean retryable, int code, io.datatree.Tree data) MoleculerError(String message, String nodeID, boolean retryable, int code, String type, io.datatree.Tree data) MoleculerError(String message, Throwable cause, String nodeID, boolean retryable, int code, String type, io.datatree.Tree data) MoleculerError(String message, Throwable cause, String name, String nodeID, boolean retryable, int code, String type, Object... data) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
stack
-
name
-
nodeID
-
retryable
protected final boolean retryable -
code
protected final int code -
type
-
data
protected final io.datatree.Tree data -
stackTrace
-
-
Constructor Details
-
MoleculerError
-
MoleculerError
-
MoleculerError
-
MoleculerError
-
MoleculerError
-
MoleculerError
-
MoleculerError
public MoleculerError(io.datatree.Tree payload)
-
-
Method Details
-
printStackTrace
public void printStackTrace()- Overrides:
printStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
toTree
public io.datatree.Tree toTree() -
toTree
public void toTree(io.datatree.Tree target) -
getStack
-
isRemote
public boolean isRemote() -
getName
-
isRetryable
public boolean isRetryable() -
getCode
public int getCode() -
getType
-
getData
public io.datatree.Tree getData()
-