blob: a7664511b5cbc6204bf8b6ab9fc03a8387d5c716 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Foundation/Foundation.h>
namespace web {
// Translates an iOS-specific error into its net error equivalent and returns
// a copy of |error| with the translation as its final underlying error. The
// underlying net error will have an error code of net::ERR_FAILED if no
// specific translation of the iOS error is found.
NSError* NetErrorFromError(NSError* error);
// Same as above but uses |net_error_code| for underlying error.
NSError* NetErrorFromError(NSError* error, NSInteger net_error_code);
} // namespace web