test_runner_errors.py 928 B

1234567891011121314151617181920212223242526272829303132
  1. # Copyright 2021 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. """Stores Error classes to be accessed in multiple files within package."""
  5. class Error(Exception):
  6. """Base class for errors."""
  7. pass
  8. class IOSRuntimeHandlingError(Error):
  9. """Base class for iOS runtime package related errors."""
  10. pass
  11. class XcodeInstallError(Error):
  12. """Base class for xcode install related errors."""
  13. pass
  14. class XcodeUnsupportedFeatureError(Error):
  15. """Base class for unsupported features related with Xcode."""
  16. pass
  17. class XcodeMacToolchainMismatchError(XcodeInstallError):
  18. """The mac_toolchain version can't work with the Xcode package."""
  19. def __init__(self, xcode_build_version):
  20. super(XcodeMacToolchainMismatchError, self).__init__(
  21. 'Legacy mac_toolchain cannot work with Xcode: %s' % xcode_build_version)