avwx.exceptions
Contains avwx custom exceptions
1""" 2Contains avwx custom exceptions 3""" 4 5 6def exception_intercept(exception: Exception, **extra: dict) -> None: 7 """Interceptor to overwrite unhandled exceptions in high-failure locations""" 8 raise exception 9 10 11class BadStation(Exception): 12 """Station does not exist""" 13 14 15class InvalidRequest(Exception): 16 """Unable to fetch data""" 17 18 19class SourceError(Exception): 20 """Source servers returned an error code"""
def
exception_intercept(exception: Exception, **extra: dict) -> None:
7def exception_intercept(exception: Exception, **extra: dict) -> None: 8 """Interceptor to overwrite unhandled exceptions in high-failure locations""" 9 raise exception
Interceptor to overwrite unhandled exceptions in high-failure locations
class
BadStation(builtins.Exception):
Station does not exist
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- add_note
- args
class
InvalidRequest(builtins.Exception):
Unable to fetch data
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- add_note
- args
class
SourceError(builtins.Exception):
Source servers returned an error code
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- add_note
- args