ApiException.unknown constructor

const ApiException.unknown({
  1. @Default('Something went wrong ! Please try again later ') String msg,
})

Creates an unknown error instance for unhandled error cases.

Used as a fallback when the error doesn't match any other predefined error types.

Implementation

const factory ApiException.unknown({@Default('Something went wrong ! Please try again later ') String msg}) = _UnKnownError;