Changes between Version 21 and Version 22 of TracDev/Exceptions
- Timestamp:
- Sep 16, 2019, 7:49:35 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/Exceptions
v21 v22 16 16 * [=#AdminCommandError `AdminCommandError`] ([source:trunk/trac/admin/api.py#/AdminCommandError trac.admin.api]): Exception raised when an admin command cannot be executed. 17 17 * [=#ConfigurationError `ConfigurationError`] ([source:trunk/trac/config.py#/ConfigurationError trac.config]): Exception raised when a value in the configuration file is not valid. 18 * [=#InvalidAttachment `InvalidAttachment`] ([source:trunk/trac/attachment.py#/InvalidAttachment trac.attachment]): Exception raised when attachment validation fails //(Deprecated since 1.3.2, to beremoved in 1.5.1)//.18 * [=#InvalidAttachment `InvalidAttachment`] ([source:trunk/trac/attachment.py#/InvalidAttachment trac.attachment]): Exception raised when attachment validation fails //(Deprecated since 1.3.2, removed in 1.5.1)//. 19 19 * [=#InvalidRepository `InvalidRepository`] ([source:trunk/trac/versioncontrol/api.py#/InvalidRepository trac.versioncontrol.api]): Exception raised when initializing a repository fails. 20 * [=#InvalidTicket `InvalidTicket`] ([source:trunk/trac/ticket/web_ui.py#/InvalidTicket trac.ticket.web_ui]): Exception raised when a ticket fails validation //(Deprecated since 1.3.2, to beremoved in 1.5.1)//.20 * [=#InvalidTicket `InvalidTicket`] ([source:trunk/trac/ticket/web_ui.py#/InvalidTicket trac.ticket.web_ui]): Exception raised when a ticket fails validation //(Deprecated since 1.3.2, removed in 1.5.1)//. 21 21 * [=#InvalidWikiPage `InvalidWikiPage`] ([source:trunk/trac/wiki/web_ui.py#/InvalidWikiPage trac.wiki.web_ui]): Exception raised when a Wiki page fails validation //(Deprecated since Trac 0.11 and removed in Trac 1.1.2)//. 22 22 * [=#Macro `MacroError`] ([source:trunk/trac/wiki/formatter.py#/MacroError trac.wiki.formatter]) Exception raised in macro when an argument is invalid //(Since Trac 1.0.11)//. … … 48 48 * [=#HTTPRequestedRangeNotSatisfiable `HTTPRequestedRangeNotSatisfiable`] ([source:trunk/trac/web/api.py#/_HTTPException_subclass_names trac.web.api]): 416 Requested Range Not Satisfiable 49 49 * [=#HTTPExpectationFailed `HTTPExpectationFailed`] ([source:trunk/trac/web/api.py#/_HTTPException_subclass_names trac.web.api]): 417 Expectation Failed 50 * [=#HTTPInternalError `HTTPInternalError`] ([source:trunk/trac/web/api.py#/_HTTPException_subclass_names trac.web.api]): 500 Internal Server Error 50 * [=#HTTPInternalError `HTTPInternalError`] ([source:trunk/trac/web/api.py#/_HTTPException_subclass_names trac.web.api]): 500 Internal Server Error //(removed in 1.3.1)// 51 * [=#HTTPInternalServerError `HTTPServerInternalError`] ([source:trunk/trac/web/api.py#/_HTTPException_subclass_names trac.web.api]): 500 Internal Server Error //(since 1.3.1)// 51 52 * [=#HTTPNotImplemented `HTTPNotImplemented`] ([source:trunk/trac/web/api.py#/_HTTPException_subclass_names trac.web.api]): 501 Not Implemented 52 53 * [=#HTTPBadGateway `HTTPBadGateway`] ([source:trunk/trac/web/api.py#/_HTTPException_subclass_names trac.web.api]): 502 Bad Gateway … … 59 60 * [=#GitErrorSha `GitErrorSha`] ([source:trunk/tracopt/versioncontrol/git/PyGIT.py#/GitErrorSha tracopt.versioncontrol.git.PyGIT]) 60 61 * [=#Error `Error`] ([source:trunk/trac/db/tests/api.py#/Error trac.db.tests.api]) 61 * ''!StandardError'' //(Removed in 1.3.3)//, `TracBaseError`62 * [=#PermissionError `PermissionError`] ([source:trunk/trac/perm.py#/PermissionError trac.perm]): Insufficient permissions to complete the operation 62 * ''!StandardError'', `TracBaseError` 63 * [=#PermissionError `PermissionError`] ([source:trunk/trac/perm.py#/PermissionError trac.perm]): Insufficient permissions to complete the operation //(Removed in 1.3.3)// 63 64 * ''!StandardError'' 64 65 * ''!RuntimeError'', `TracBaseError` 65 * [=#BackupError `BackupError`] ([source:trunk/trac/env.py#/BackupError trac.env]): Exception raised during an upgrade when the DB backup fails .66 * [=#BackupError `BackupError`] ([source:trunk/trac/env.py#/BackupError trac.env]): Exception raised during an upgrade when the DB backup fails 66 67 67 68 Hierarchy is inconsistent, even after addition of `TracBaseError` class (#11568). There doesn't seem to be any consistent pattern in inheriting from `TracError`. Some exceptions also inherit from built-in exception classes other than `Exception`.