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).
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
RaidenRecoverableErrorand converts that to more specificAlreadyRegisteredTokenAddressand so on.This issue keeps track of stopping that, by
RaidenRecoverableError(notRaidenError).