ShrtnrError constructor

const ShrtnrError(
  1. int status,
  2. String serverMessage
)

Creates an error from an HTTP status and a server-provided message.

Use status 0 for network-level failures where no HTTP status exists.

Implementation

const ShrtnrError(this.status, this.serverMessage);