Module mbed_targets.exceptions

Public exceptions exposed by the package.

Expand source code
#
# Copyright (C) 2020 Arm Mbed. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
"""Public exceptions exposed by the package."""

from mbed_tools_lib.exceptions import ToolsError


class MbedTargetsError(ToolsError):
    """Base exception for mbed-targets."""


class TargetError(ToolsError):
    """Target definition cannot be retrieved."""


class UnknownBoard(MbedTargetsError):
    """Requested board was not found."""


class UnsupportedMode(MbedTargetsError):
    """The Database Mode is unsupported."""


class BoardDatabaseError(MbedTargetsError):
    """Failed to get the board data from the database."""

Classes

class BoardDatabaseError (...)

Failed to get the board data from the database.

Expand source code
class BoardDatabaseError(MbedTargetsError):
    """Failed to get the board data from the database."""

Ancestors

  • MbedTargetsError
  • mbed_tools_lib.exceptions.ToolsError
  • builtins.Exception
  • builtins.BaseException

Subclasses

  • mbed_targets._internal.exceptions.BoardAPIError
  • mbed_targets._internal.exceptions.ResponseJSONError
class MbedTargetsError (...)

Base exception for mbed-targets.

Expand source code
class MbedTargetsError(ToolsError):
    """Base exception for mbed-targets."""

Ancestors

  • mbed_tools_lib.exceptions.ToolsError
  • builtins.Exception
  • builtins.BaseException

Subclasses

class TargetError (...)

Target definition cannot be retrieved.

Expand source code
class TargetError(ToolsError):
    """Target definition cannot be retrieved."""

Ancestors

  • mbed_tools_lib.exceptions.ToolsError
  • builtins.Exception
  • builtins.BaseException
class UnknownBoard (...)

Requested board was not found.

Expand source code
class UnknownBoard(MbedTargetsError):
    """Requested board was not found."""

Ancestors

  • MbedTargetsError
  • mbed_tools_lib.exceptions.ToolsError
  • builtins.Exception
  • builtins.BaseException
class UnsupportedMode (...)

The Database Mode is unsupported.

Expand source code
class UnsupportedMode(MbedTargetsError):
    """The Database Mode is unsupported."""

Ancestors

  • MbedTargetsError
  • mbed_tools_lib.exceptions.ToolsError
  • builtins.Exception
  • builtins.BaseException