Creates a new PeerixError instance.
An error object, string message, or any value to wrap.
Optionalcode: ErrorCode
An error code for categorizing the error. If omitted, a wrapped
PeerixError keeps its code, and anything else gets UNKNOWN_ERROR.
Optional ReadonlycauseThe wrapped error, if an error object was wrapped.
ReadonlycodeAn error code for categorizing the error.
The error message providing details about the error.
The name of the error, typically Error or a specific error type.
Optionalstack
Custom error class for Peerix-related errors. Extends the built-in Error class and adds a
codeproperty.