You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by "Ran Ziv (JIRA)" <ji...@apache.org> on 2017/05/03 11:29:04 UTC

[jira] [Created] (ARIA-182) Errors hierarchy and consistency

Ran Ziv created ARIA-182:
----------------------------

             Summary: Errors hierarchy and consistency
                 Key: ARIA-182
                 URL: https://issues.apache.org/jira/browse/ARIA-182
             Project: AriaTosca
          Issue Type: Story
            Reporter: Ran Ziv
            Priority: Minor


Error classes are currently disorganized.

1) Errors should all be under {{exceptions.py}} for their package / relevant part of the code, which is mostly the case but not all over

2) Inheritance is currently somewhat messy, e.g. orchestrator errors under {{orchestrator/exceptions.py}} don't inherit from {{OrchestratorError}} but rather from {{AriaError}}; There are also both {{AriaError}} and {{AriaException}}, and different classes inherit from each.

3) Suffix of error classes is sometimes {{Error}} and sometimes {{Exception}}. This should be consistently {{Error}}. Note that there can be cases where it's actually an Exception, but at the moment this is widely misused.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)