mirror of
https://github.com/arcan1s/ffxivbis.git
synced 2025-07-04 17:35:56 +00:00
19 lines
539 B
Python
19 lines
539 B
Python
from typing import Any, Mapping
|
|
|
|
|
|
class InvalidDatabase(Exception):
|
|
|
|
def __init__(self, database_type: str) -> None:
|
|
Exception.__init__(self, 'Unsupported database {}'.format(database_type))
|
|
|
|
|
|
class InvalidDataRow(Exception):
|
|
|
|
def __init__(self, data: Mapping[str, Any]) -> None:
|
|
Exception.__init__(self, 'Invalid data row `{}`'.format(data))
|
|
|
|
|
|
class MissingConfiguration(Exception):
|
|
|
|
def __init__(self, section: str) -> None:
|
|
Exception.__init__(self, 'Missing configuration section {}'.format(section)) |