Module scenariogeneration.xosc.exceptions

scenariogeneration https://github.com/pyoscx/scenariogeneration

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Copyright (c) 2022 The scenariogeneration Authors.

Expand source code
"""
  scenariogeneration
  https://github.com/pyoscx/scenariogeneration
 
  This Source Code Form is subject to the terms of the Mozilla Public
  License, v. 2.0. If a copy of the MPL was not distributed with this
  file, You can obtain one at https://mozilla.org/MPL/2.0/.
 
  Copyright (c) 2022 The scenariogeneration Authors.

"""


class NoActionsDefinedError(Exception):
    """Raised when no actions are defined in a class"""

    pass


class NoCatalogFoundError(Exception):
    """Raised when no catalog is found with the given name"""

    pass


class OpenSCENARIOVersionError(Exception):
    """Raised when trying to use features from a newer version of OpenSCENARIO than the desiered version"""

    pass


class ToManyOptionalArguments(Exception):
    """Raised when one of the needed "optional" inputs are not used"""

    pass


class NotEnoughInputArguments(Exception):
    """Raised when one of the needed "optional" inputs are not used"""

    pass


class NotAValidElement(Exception):
    """Raised when one of the needed "optional" inputs are not used"""

    pass

Classes

class NoActionsDefinedError (*args, **kwargs)

Raised when no actions are defined in a class

Expand source code
class NoActionsDefinedError(Exception):
    """Raised when no actions are defined in a class"""

    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException
class NoCatalogFoundError (*args, **kwargs)

Raised when no catalog is found with the given name

Expand source code
class NoCatalogFoundError(Exception):
    """Raised when no catalog is found with the given name"""

    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException
class NotAValidElement (*args, **kwargs)

Raised when one of the needed "optional" inputs are not used

Expand source code
class NotAValidElement(Exception):
    """Raised when one of the needed "optional" inputs are not used"""

    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException
class NotEnoughInputArguments (*args, **kwargs)

Raised when one of the needed "optional" inputs are not used

Expand source code
class NotEnoughInputArguments(Exception):
    """Raised when one of the needed "optional" inputs are not used"""

    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException
class OpenSCENARIOVersionError (*args, **kwargs)

Raised when trying to use features from a newer version of OpenSCENARIO than the desiered version

Expand source code
class OpenSCENARIOVersionError(Exception):
    """Raised when trying to use features from a newer version of OpenSCENARIO than the desiered version"""

    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException
class ToManyOptionalArguments (*args, **kwargs)

Raised when one of the needed "optional" inputs are not used

Expand source code
class ToManyOptionalArguments(Exception):
    """Raised when one of the needed "optional" inputs are not used"""

    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException