Some checks failed
Build / Test on ubuntu-latest (push) Successful in 3m6s
Lint / lint (push) Successful in 22s
Build / typecheck (ubuntu-latest, 3.9) (push) Successful in 1m49s
Lint / format (push) Successful in 42s
Build / Test on macOS-latest (push) Has been cancelled
Build / Test on windows-latest (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1m31s
20 lines
531 B
Python
20 lines
531 B
Python
import werkzeug.exceptions
|
|
|
|
|
|
class BadRequest(werkzeug.exceptions.BadRequest):
|
|
def __init__(self, type: str, message: str) -> None:
|
|
super().__init__(message)
|
|
self.type = type
|
|
|
|
|
|
class NotFound(werkzeug.exceptions.NotFound):
|
|
def __init__(self, type: str, message: str) -> None:
|
|
super().__init__(message)
|
|
self.type = type
|
|
|
|
|
|
class Unauthorized(werkzeug.exceptions.Unauthorized):
|
|
def __init__(self, type: str, message: str) -> None:
|
|
super().__init__(message)
|
|
self.type = type
|