exceptions
Route custom exceptions.
Attributes
Classes
ServerException(message, exception_type, exception_traceback)
Bases: Exception
Server error.
Source code in pyrevitlib/pyrevit/routes/server/exceptions.py
Attributes
status = 500
instance-attribute
APINotDefinedException(api_name)
Bases: Exception
API is not defined exception.
Source code in pyrevitlib/pyrevit/routes/server/exceptions.py
Attributes
status = 404
instance-attribute
RouteHandlerNotDefinedException(api_name, route, method)
Bases: Exception
Route does not exits exception.
Source code in pyrevitlib/pyrevit/routes/server/exceptions.py
Attributes
status = 404
instance-attribute
RouteHandlerDeniedException(request)
Bases: Exception
Route handler was denied by host.
Source code in pyrevitlib/pyrevit/routes/server/exceptions.py
Attributes
status = 406
instance-attribute
source = HOST_APP.pretty_name
instance-attribute
RouteHandlerTimedOutException(request)
Bases: Exception
Route handler was timed out by host.
Source code in pyrevitlib/pyrevit/routes/server/exceptions.py
Attributes
status = 408
instance-attribute
source = HOST_APP.pretty_name
instance-attribute
RouteHandlerIsNotCallableException(hndlr_name)
Bases: Exception
Route handler is not callable.
Source code in pyrevitlib/pyrevit/routes/server/exceptions.py
Attributes
status = 405
instance-attribute
source = HOST_APP.pretty_name
instance-attribute
RouteHandlerExecException(message)
Bases: Exception
Route handler exception.
Source code in pyrevitlib/pyrevit/routes/server/exceptions.py
Attributes
status = 408
instance-attribute
source = HOST_APP.pretty_name
instance-attribute
RouteHandlerException(message, exception_type, exception_traceback, clsx_message, clsx_source, clsx_stacktrace, clsx_targetsite)
Bases: Exception
Route handler exception.