traci.exceptions
index
/home/delphi/gcc/sumo/tools/traci/exceptions.py

# -*- coding: utf-8 -*-
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
# Copyright (C) 2008-2024 German Aerospace Center (DLR) and others.
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the Eclipse
# Public License 2.0 are satisfied: GNU General Public License, version 2
# or later which is available at
https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later

 
Modules
       
functools
warnings

 
Classes
       
builtins.Exception(builtins.BaseException)
FatalTraCIError
TraCIException

 
class FatalTraCIError(builtins.Exception)
    FatalTraCIError(desc)
 
Exception class for all TraCI errors which do not allow for continuation
 
 
Method resolution order:
FatalTraCIError
builtins.Exception
builtins.BaseException
builtins.object

Methods defined here:
__init__(self, desc)
Initialize self.  See help(type(self)) for accurate signature.

Data descriptors defined here:
__weakref__
list of weak references to the object

Static methods inherited from builtins.Exception:
__new__(*args, **kwargs) class method of builtins.Exception
Create and return a new object.  See help(type) for accurate signature.

Methods inherited from builtins.BaseException:
__delattr__(self, name, /)
Implement delattr(self, name).
__getattribute__(self, name, /)
Return getattr(self, name).
__reduce__(...)
Helper for pickle.
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
__setstate__(...)
__str__(self, /)
Return str(self).
add_note(...)
Exception.add_note(note) --
add a note to the exception
with_traceback(...)
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
exception cause
__context__
exception context
__dict__
__suppress_context__
__traceback__
args

 
class TraCIException(builtins.Exception)
    TraCIException(desc, command=None, errorType=None)
 
Exception class for all TraCI errors which keep the connection intact
 
 
Method resolution order:
TraCIException
builtins.Exception
builtins.BaseException
builtins.object

Methods defined here:
__init__(self, desc, command=None, errorType=None)
Initialize self.  See help(type(self)) for accurate signature.
getCommand(self)
getType(self)

Data descriptors defined here:
__weakref__
list of weak references to the object

Static methods inherited from builtins.Exception:
__new__(*args, **kwargs) class method of builtins.Exception
Create and return a new object.  See help(type) for accurate signature.

Methods inherited from builtins.BaseException:
__delattr__(self, name, /)
Implement delattr(self, name).
__getattribute__(self, name, /)
Return getattr(self, name).
__reduce__(...)
Helper for pickle.
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
__setstate__(...)
__str__(self, /)
Return str(self).
add_note(...)
Exception.add_note(note) --
add a note to the exception
with_traceback(...)
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
exception cause
__context__
exception context
__dict__
__suppress_context__
__traceback__
args

 
Functions
       
alias_param(param, alias, deprecate=True)
Decorator for aliasing a param in a function
deprecated(old_name=None)
This is a decorator which can be used to mark functions
as deprecated. It will result in a warning being emitted
when the function is used.