toTitle method

String toTitle()

Returns a short error title for UI dialogs

Implementation

String toTitle() {
  return switch (this) {
    UnauthorizedError() => 'Authentication Required',
    ForbiddenError() => 'Access Forbidden',
    NotFoundError() => 'Model Not Found',
    RateLimitedError() => 'Rate Limited',
    ServerError() => 'Server Error',
    NetworkError() => 'Network Error',
    CanceledError() => 'Download Canceled',
    UnknownError() => 'Download Failed',
  };
}