Framework error definitions.
最初に以下の最小例でモジュール利用方法を確認し、その後 API リファレンスを参照してください。
from nexom.core.error import *
# このモジュールの関数・クラスを用途に合わせて呼び出します。
# 下の API リファレンスで各関数の引数と使い方を確認してください。
分類: internal function
_status_for_auth_error(code: str) -> int
実装コード由来のAPIです。
code / kind=positional-or-keyword / type=str / 必須 / default=なしint
実装コード内の例外仕様を確認してください。
from nexom.core.error import _status_for_auth_error
result = _status_for_auth_error(code="sample")
print(result)
分類: public class
Base exception class for all Nexom errors. Attributes: code: Stable error code for programmatic handling. message: Human-readable error message.
分類: special method
__init__(self, code: str, message: str) -> None
メソッドドキュメントは未定義です。
code / kind=positional-or-keyword / type=str / 必須 / default=なしmessage / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import NexomError
obj = NexomError(code="sample", message="sample")
分類: special method
__str__(self) -> str
メソッドドキュメントは未定義です。
str
実装コード内の例外仕様を確認してください。
from nexom.core.error import NexomError
obj = NexomError(...)
result = obj.__str__()
print(result)
分類: public class
Raised when required CLI arguments are missing.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import CommandArgumentsError
obj = CommandArgumentsError()
分類: public class
Raised when no matching route is found.
分類: special method
__init__(self, path: str) -> None
メソッドドキュメントは未定義です。
path / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import PathNotFoundError
obj = PathNotFoundError(path="sample")
分類: public class
Raised when a handler returns an invalid response type.
分類: special method
__init__(self, handler: Any) -> None
メソッドドキュメントは未定義です。
handler / kind=positional-or-keyword / type=Any / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import PathInvalidHandlerTypeError
obj = PathInvalidHandlerTypeError(handler=...)
分類: public class
Raised when a non-Path object is added to Pathlib.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import PathlibTypeError
obj = PathlibTypeError()
分類: public class
Raised when a handler signature is invalid.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import PathHandlerMissingArgError
obj = PathHandlerMissingArgError()
分類: public class
Raised when a cookie value is invalid.
分類: special method
__init__(self, value: str) -> None
メソッドドキュメントは未定義です。
value / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import CookieInvalidValueError
obj = CookieInvalidValueError(value="sample")
分類: public class
Raised when a template file cannot be found.
分類: special method
__init__(self, name: str) -> None
メソッドドキュメントは未定義です。
name / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import TemplateNotFoundError
obj = TemplateNotFoundError(name="sample")
分類: public class
Raised when a template file/dir name violates Nexom template naming rules.
分類: special method
__init__(self, key: str) -> None
メソッドドキュメントは未定義です。
key / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import TemplateInvalidNameError
obj = TemplateInvalidNameError(key="sample")
分類: public class
Raised when the base templates directory is not a directory.
分類: special method
__init__(self, path: str) -> None
メソッドドキュメントは未定義です。
path / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import TemplatesNotDirError
obj = TemplatesNotDirError(path="sample")
分類: public class
Raised when an HTML document is not found in the library.
分類: special method
__init__(self, name: str) -> None
メソッドドキュメントは未定義です。
name / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import HTMLDocLibNotFoundError
obj = HTMLDocLibNotFoundError(name="sample")
分類: public class
Raised when an insert value for ObjectHTML is invalid.
分類: special method
__init__(self, name: str) -> None
メソッドドキュメントは未定義です。
name / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import ObjectHTMLInsertValueError
obj = ObjectHTMLInsertValueError(name="sample")
分類: public class
Raised when an extends for ObjectHTML is invalid.
分類: special method
__init__(self, name: str) -> None
メソッドドキュメントは未定義です。
name / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import ObjectHTMLExtendsError
obj = ObjectHTMLExtendsError(name="sample")
分類: public class
Raised when an import for ObjectHTML is invalid.
分類: special method
__init__(self, name: str) -> None
メソッドドキュメントは未定義です。
name / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import ObjectHTMLImportError
obj = ObjectHTMLImportError(name="sample")
分類: public class
Raised when an set HTMLDoc for type is valid.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import ObjectHTMLTypeError
obj = ObjectHTMLTypeError()
分類: public class
Base class for database-related errors. This error represents a generic database failure that does not fall into a more specific category such as connection, integrity, operational, or programming errors. It is typically used as a catch-all or wrapper error when the underlying database exception cannot be safely or clearly classified.
このクラスにメソッド定義はありません。
分類: public class
Raised when the database manager connection is invalid or not initialized. This error indicates that the database manager (DBM) is in an unusable state, such as: - the database connection has not been established yet - the connection was already closed - the DBM was accessed before proper initialization This is typically a lifecycle or configuration error.
分類: special method
__init__(self, message: str = 'Not started') -> None
メソッドドキュメントは未定義です。
message / kind=positional-or-keyword / type=str / 任意 / default='Not started'None
実装コード内の例外仕様を確認してください。
from nexom.core.error import DBMConnectionInvalidError
obj = DBMConnectionInvalidError(message='Not started')
分類: public class
Raised when a database operational error occurs. This error represents failures related to the database runtime environment, such as: - inability to open or connect to the database file - database being locked - I/O errors during a query - transaction failures caused by the database state Typically maps to sqlite3.OperationalError.
分類: special method
__init__(self, message: str) -> None
メソッドドキュメントは未定義です。
message / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import DBOperationalError
obj = DBOperationalError(message="sample")
分類: public class
Raised when a database integrity constraint is violated. This error indicates that a database constraint has been broken, such as: - UNIQUE constraint violations - FOREIGN KEY constraint failures - NOT NULL constraint violations - CHECK constraint failures Typically maps to sqlite3.IntegrityError.
分類: special method
__init__(self, message: str) -> None
メソッドドキュメントは未定義です。
message / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import DBIntegrityError
obj = DBIntegrityError(message="sample")
分類: public class
Raised when a database programming or SQL syntax error occurs. This error indicates a bug in application code or query construction, such as: - malformed SQL statements - referencing non-existent tables or columns - incorrect parameter binding - misuse of the database API Typically maps to sqlite3.ProgrammingError.
分類: special method
__init__(self, message: str) -> None
メソッドドキュメントは未定義です。
message / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import DBProgrammingError
obj = DBProgrammingError(message="sample")
分類: public class
Required auth fields are missing.
分類: special method
__init__(self, key: str) -> None
メソッドドキュメントは未定義です。
key / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import AuthMissingFieldError
obj = AuthMissingFieldError(key="sample")
分類: public class
user_id already exists (signup conflict).
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import AuthUserIdAlreadyExistsError
obj = AuthUserIdAlreadyExistsError()
分類: public class
user_id or password is invalid (login).
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import AuthInvalidCredentialsError
obj = AuthInvalidCredentialsError()
分類: public class
User is inactive/disabled.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import AuthUserDisabledError
obj = AuthUserDisabledError()
分類: public class
Token is missing.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import AuthTokenMissingError
obj = AuthTokenMissingError()
分類: public class
Token is invalid (malformed / not found).
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import AuthTokenInvalidError
obj = AuthTokenInvalidError()
分類: public class
Token is expired.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import AuthTokenExpiredError
obj = AuthTokenExpiredError()
分類: public class
Token is revoked (logout etc).
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import AuthTokenRevokedError
obj = AuthTokenRevokedError()
分類: public class
AuthService is unreachable / timed out / invalid response.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import AuthServiceUnavailableError
obj = AuthServiceUnavailableError()
分類: public class
Permission group_id already exists.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import AuthPermissionGroupAlreadyExistsError
obj = AuthPermissionGroupAlreadyExistsError()
分類: public class
This error occurs when the FileStatus value is invalid.
分類: special method
__init__(self, status) -> None
メソッドドキュメントは未定義です。
status / kind=positional-or-keyword / type=型指定なし / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import PsStatusTypesError
obj = PsStatusTypesError(status=...)
分類: public class
This contents_id is not available.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import PsFileStatusInvalidError
obj = PsFileStatusInvalidError()
分類: public class
This contents_id is not available.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import PsFileStatusInvalidError
obj = PsFileStatusInvalidError()
分類: public class
Raised when an argument value is invalid
分類: special method
__init__(self, name: str | None = None) -> None
メソッドドキュメントは未定義です。
name / kind=positional-or-keyword / type=str | None / 任意 / default=NoneNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import PsArgmentsError
obj = PsArgmentsError(name=None)
分類: public class
Occurs when public_id is invalid
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import PsPublicIDInvalidError
obj = PsPublicIDInvalidError()
分類: public class
Occurs when contents_id is invalid
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import PsContentsIDInvalidError
obj = PsContentsIDInvalidError()
分類: public class
This occurs when data is corrupted.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import PsDataCorruotedError
obj = PsDataCorruotedError()
分類: public class
This occurs when data is corrupted.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import PsChunkEntityTooLargeError
obj = PsChunkEntityTooLargeError()
分類: public class
This occurs when data is corrupted.
分類: special method
__init__(self) -> None
メソッドドキュメントは未定義です。
None
実装コード内の例外仕様を確認してください。
from nexom.core.error import PsPermissionError
obj = PsPermissionError()
分類: public class
This error occurs when the FileType is invalid.
分類: special method
__init__(self, status) -> None
メソッドドキュメントは未定義です。
status / kind=positional-or-keyword / type=型指定なし / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.core.error import PsFileTypesError
obj = PsFileTypesError(status=...)
nexom.core.errorservices/venv/lib/python3.10/site-packages/nexom/core/error.py2026-03-14