forked from CenterForOpenScience/osf.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request CenterForOpenScience#10475 from cslzchen/feature/e…
…ng-4897-tests-addon [ENG-4897] Unit tests for Boa add-on + improve Boa add-on
- Loading branch information
Showing
23 changed files
with
575 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
""" | ||
Custom exceptions for add-ons. | ||
""" | ||
|
||
class AddonError(Exception): | ||
pass | ||
|
||
|
||
class InvalidFolderError(AddonError): | ||
pass | ||
|
||
|
||
class InvalidAuthError(AddonError): | ||
pass | ||
|
||
|
||
class HookError(AddonError): | ||
pass | ||
|
||
|
||
class QueryError(AddonError): | ||
pass | ||
|
||
|
||
class DoesNotExist(AddonError): | ||
pass | ||
|
||
|
||
class NotApplicableError(AddonError): | ||
"""This exception is used by non-storage and/or non-oauth add-ons when they don't need or have certain features.""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.