The error domain, usually represents a library, class, or plugin.
The error message
Optional
cause: TFuseErrorCauseThe underlying cause of the error. May be null.
Optional
code: numberAn error code. May be null.
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackA serialized object representing an error.
Static
captureStatic
fromDeserializes and creates a new FuseError instance
The serialized error object
A FuseError instance
Static
wrapWraps the given object into a FuseError object. Accepts several different formats, which influences the behaviour of this method.
If the input is a string, a FuseError object is created with the string as the error message of an unknown domain.
If the input is a FuseError, then this method does nothing but passes through the FuseError. The returned FuseError is the input FuseError, a copy is not made.
If the input is an Error, then a FuseError is created using the name as the domain, and it's message as the error message. The error object is also used as the FuseError's cause parameter.
If the input is of the shape of IFuseErrorSerialized, then the object is deserialized into a FuseError instance.
If any other type of object is given, an console error message will be printed and a "FuseError" domain error will be returned stating the error is not wrappable.
A value that can represent an error
A FuseError instance
A structured error object.