NatsError constructor

NatsError(
  1. String message,
  2. ErrorCode error, [
  3. Error? chainedError,
  4. String name = 'NatsError',
])

Implementation

NatsError(this.message, this.error, [this.chainedError, this.name = 'NatsError']);