DeekWebException.fromError constructor

DeekWebException.fromError(
  1. Error e
)

Creates a DeekWebException from an error. Generally you should consider Errors to be fatal, hence they are separate from Exceptions. However, parsing errors will result in a TypeError, and the app shouldn't crash if the server turns an unexpected value.

Implementation

DeekWebException.fromError(Error e)
    : _error = e,
      _exception = null;