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.
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 NotSameAmountOfLanesError(Exception):
"""Raised when the amount of Lanes are not the same (used for the automation of linking)"""
pass
class NotEnoughInputArguments(Exception):
"""Raised when one of the needed "optional" inputs are not used"""
pass
class ToManyOptionalArguments(Exception):
"""Raised when one of the needed "optional" inputs are not used"""
pass
class UndefinedRoadNetwork(Exception):
"""Raised when the user haven't connected the roads in a correct way"""
pass
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
class MixOfGeometryAddition(Exception):
"""Raise when the wrong way of adding geometires are used for the planview"""
pass
class GeneralIssueInputArguments(Exception):
"""Raise when there is something wrong in the input arguments"""
pass
class IdAlreadyExists(Exception):
"""Raise when there is a clash between ids"""
pass
class RemovedFunctionality(Exception):
"""Raise when a function has been removed"""
pass
class MixingDrivingDirection(Exception):
"""Raise when the driving directions are added"""
pass
Classes
class GeneralIssueInputArguments (*args, **kwargs)
-
Raise when there is something wrong in the input arguments
Expand source code
class GeneralIssueInputArguments(Exception): """Raise when there is something wrong in the input arguments""" pass
Ancestors
- builtins.Exception
- builtins.BaseException
class IdAlreadyExists (*args, **kwargs)
-
Raise when there is a clash between ids
Expand source code
class IdAlreadyExists(Exception): """Raise when there is a clash between ids""" pass
Ancestors
- builtins.Exception
- builtins.BaseException
class MixOfGeometryAddition (*args, **kwargs)
-
Raise when the wrong way of adding geometires are used for the planview
Expand source code
class MixOfGeometryAddition(Exception): """Raise when the wrong way of adding geometires are used for the planview""" pass
Ancestors
- builtins.Exception
- builtins.BaseException
class MixingDrivingDirection (*args, **kwargs)
-
Raise when the driving directions are added
Expand source code
class MixingDrivingDirection(Exception): """Raise when the driving directions are added""" 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 NotSameAmountOfLanesError (*args, **kwargs)
-
Raised when the amount of Lanes are not the same (used for the automation of linking)
Expand source code
class NotSameAmountOfLanesError(Exception): """Raised when the amount of Lanes are not the same (used for the automation of linking)""" pass
Ancestors
- builtins.Exception
- builtins.BaseException
class RemovedFunctionality (*args, **kwargs)
-
Raise when a function has been removed
Expand source code
class RemovedFunctionality(Exception): """Raise when a function has been removed""" pass
Ancestors
- builtins.Exception
- builtins.BaseException
class RoadsAndLanesNotAdjusted (*args, **kwargs)
-
Raised when the user tries to perform an action on non-adjusted lanes and roads that requires adjusted lanes and roads
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
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
class UndefinedRoadNetwork (*args, **kwargs)
-
Raised when the user haven't connected the roads in a correct way
Expand source code
class UndefinedRoadNetwork(Exception): """Raised when the user haven't connected the roads in a correct way""" pass
Ancestors
- builtins.Exception
- builtins.BaseException