Edgewall Software

Changes between Version 21 and Version 22 of TracDev/Exceptions


Ignore:
Timestamp:
Sep 16, 2019, 7:49:35 PM (3 months ago)
Author:
Ryan J Ollos
Comment:

Document r14917 (comment:21:ticket:11901).

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/Exceptions

    v21 v22  
    1616      * [=#AdminCommandError `AdminCommandError`] ([source:trunk/trac/admin/api.py#/AdminCommandError trac.admin.api]): Exception raised when an admin command cannot be executed.
    1717      * [=#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 be removed 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)//.
    1919      * [=#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 be removed 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)//.
    2121      * [=#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)//.
    2222      * [=#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)//.
     
    4848      * [=#HTTPRequestedRangeNotSatisfiable `HTTPRequestedRangeNotSatisfiable`] ([source:trunk/trac/web/api.py#/_HTTPException_subclass_names trac.web.api]): 416 Requested Range Not Satisfiable
    4949      * [=#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)//
    5152      * [=#HTTPNotImplemented `HTTPNotImplemented`] ([source:trunk/trac/web/api.py#/_HTTPException_subclass_names trac.web.api]): 501 Not Implemented
    5253      * [=#HTTPBadGateway `HTTPBadGateway`] ([source:trunk/trac/web/api.py#/_HTTPException_subclass_names trac.web.api]): 502 Bad Gateway
     
    5960      * [=#GitErrorSha `GitErrorSha`] ([source:trunk/tracopt/versioncontrol/git/PyGIT.py#/GitErrorSha tracopt.versioncontrol.git.PyGIT])
    6061    * [=#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)//
    6364  * ''!StandardError''
    6465    * ''!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
    6667
    6768Hierarchy 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`.