Skip to content

Document that proxies should not raise specific exceptions AlreadyRegisteredTokenAddress etc. #4878

@pirapira

Description

@pirapira

I thought something like below, but there is a reason not to do that according to @rakanalh and @hackaugusto. This issue keeps track of documenting the reason why proxies are not supposed to raise specific exceptions such as AlreadyRegisteredTokenAddress.


In Python, programmers can define new exceptions. So at the cause of the exception, the programmer can raise a specific exception that describes the situation. Currently in Raiden, sometimes the API function catches a generic RaidenRecoverableError and converts that to more specific AlreadyRegisteredTokenAddress and so on.

This issue keeps track of stopping that, by

  • raising specific exceptions from the proxies, and
  • classifying these specific exceptions as RaidenRecoverableError (not RaidenError).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions