Module scenariogeneration.xodr.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.

Classes

class GeneralIssueInputArguments (*args, **kwargs)
Expand source code
class GeneralIssueInputArguments(Exception):
    """Raise when there is something wrong in the input arguments"""

    pass

Raise when there is something wrong in the input arguments

Ancestors

  • builtins.Exception
  • builtins.BaseException
class IdAlreadyExists (*args, **kwargs)
Expand source code
class IdAlreadyExists(Exception):
    """Raise when there is a clash between ids"""

    pass

Raise when there is a clash between ids

Ancestors

  • builtins.Exception
  • builtins.BaseException
class MixOfGeometryAddition (*args, **kwargs)
Expand source code
class MixOfGeometryAddition(Exception):
    """Raise when the wrong way of adding geometires are used for the planview"""

    pass

Raise when the wrong way of adding geometires are used for the planview

Ancestors

  • builtins.Exception
  • builtins.BaseException
class MixingDrivingDirection (*args, **kwargs)
Expand source code
class MixingDrivingDirection(Exception):
    """Raise when the driving directions are added"""

    pass

Raise when the driving directions are added

Ancestors

  • builtins.Exception
  • builtins.BaseException
class NotEnoughInputArguments (*args, **kwargs)
Expand source code
class NotEnoughInputArguments(Exception):
    """Raised when one of the needed "optional" inputs are not used"""

    pass

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

Ancestors

  • builtins.Exception
  • builtins.BaseException
class NotSameAmountOfLanesError (*args, **kwargs)
Expand source code
class NotSameAmountOfLanesError(Exception):
    """Raised when the amount of Lanes are not the same (used for the automation of linking)"""

    pass

Raised when the amount of Lanes are not the same (used for the automation of linking)

Ancestors

  • builtins.Exception
  • builtins.BaseException
class RemovedFunctionality (*args, **kwargs)
Expand source code
class RemovedFunctionality(Exception):
    """Raise when a function has been removed"""

    pass

Raise when a function has been removed

Ancestors

  • builtins.Exception
  • builtins.BaseException
class RoadsAndLanesNotAdjusted (*args, **kwargs)
Expand source code
class RoadsAndLanesNotAdjusted(Exception):
    """Raised when the user tries to perform an action on non-adjusted lanes and roads that requires adjusted lanes and roads"""

    pass

Raised when the user tries to perform an action on non-adjusted lanes and roads that requires adjusted lanes and roads

Ancestors

  • builtins.Exception
  • builtins.BaseException
class ToManyOptionalArguments (*args, **kwargs)
Expand source code
class ToManyOptionalArguments(Exception):
    """Raised when one of the needed "optional" inputs are not used"""

    pass

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

Ancestors

  • builtins.Exception
  • builtins.BaseException
class UndefinedRoadNetwork (*args, **kwargs)
Expand source code
class UndefinedRoadNetwork(Exception):
    """Raised when the user haven't connected the roads in a correct way"""

    pass

Raised when the user haven't connected the roads in a correct way

Ancestors

  • builtins.Exception
  • builtins.BaseException