errorToObject property
Sample throwables keyed by type name, used by the package's tests to exercise every branch of formatErrorMessage.
Implementation
static Map<String, Exception> get errorToObject => {
'ClientException': ClientException(''),
'SocketException': const SocketException(''),
'HttpException': const HttpException(''),
'RedirectException': const RedirectException('', []),
'WebSocketException': const WebSocketException(''),
'FileSystemException': const FileSystemException(''),
'TlsException': const TlsException(''),
'TimeoutException': TimeoutException(''),
'MissingPluginException': MissingPluginException(''),
'NetworkImageLoadException': NetworkImageLoadException(
statusCode: 500,
uri: Uri.https('google.com'),
),
'CertificateException': const CertificateException(''),
};