| # Copyright 2021 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. |
| """Stores Error classes to be accessed in multiple files within package.""" |
| |
| |
| class Error(Exception): |
| """Base class for errors.""" |
| pass |
| |
| |
| class IOSRuntimeHandlingError(Error): |
| """Base class for iOS runtime package related errors.""" |
| pass |
| |
| |
| class XcodeInstallError(Error): |
| """Base class for xcode install related errors.""" |
| pass |
| |
| |
| class XcodeMacToolchainMismatchError(XcodeInstallError): |
| """The mac_toolchain version can't work with the Xcode package.""" |
| |
| def __init__(self, xcode_build_version): |
| super(XcodeMacToolchainMismatchError, self).__init__( |
| 'Legacy mac_toolchain cannot work with Xcode: %s' % xcode_build_version) |