On 30/10/13 03:47, xor wrote:
>>>> Errors:
>>>> If you are already subscribed to the selected type, you will only receive
>>>> a
>>>> message:
>>>> "Message" = "Error"
>>>> "Description" =
>>>> "plugins.WebOfTrust.SubscriptionManager$SubscriptionExistsAlreadyExceptio
>>>> n"
>>>> "SubscriptionID" = Same as in the original "Subscribed" message
>>>> "To" = Same as you requested
>>>> "OriginalMessage" = "Subscribe"
>> Would it be appropriate to have an error code so that some error types
>> can be machine-readable? I remember running into difficulties with this
>> sort of thing with my Infocalypse patches.
> The "Description" is the actual class name of the exception, so it should be 
> safe to assume that the same literal value is always used.
Until you refactor. This is bad IMHO, you should have a defined list of
error codes (even if you use strings for them, they shouldn't include
e.g. package names).

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Devl mailing list
[email protected]
https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to