HttpNotSuccess.throwError constructor

HttpNotSuccess.throwError(
  1. Object e,
  2. StackTrace s
)

Implementation

factory HttpNotSuccess.throwError(
  final Object e, final StackTrace s
) => HttpNotSuccess(
  (e as DioException).response?.statusCode ?? 0,
  (( e.response?.data ?? {
    'error': 'Servidor caido o error en el servidor'
  }) as Map<String, dynamic>)['error']
);