errorToObject property

Map<String, Exception> get errorToObject

Implementation

static Map<String, Exception> get errorToObject {
  return {
    '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(''),
  };
}