CyberArmy University | Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

InvalidArgumentExceptions--How should we handle it


[Replies] [Reply] [View by Thread] [Help]
[Back To SNEAK Development Forum]

Posted by Cpt SAJChurchey On 2005-02-28 19:31:39
In Reply to Desktop Version Posted by CinC snarkles On 2005-02-15 17:19:31

Cpt
Cpt SAJChurchey


What kind of error messages should the encryption/decryption methods report back to the client? I want to go ahead and code in the exception throws for the functions.

I think w/ any null case, the exception message should be an empty string. No real processing is done, and the user probably submitted a null input on accident. It would probably be completely transparent, and the user would just think that it didn't do anything w/ an empty text field.

All whitespace may be handled the same way.

Invalid input in general, we should report back to the user exactly what kind of input we're looking for "binary digits, hex digits,UTF-16, etc." and that these sets should be separated by whitespace.

Cpt SAJChurchey
C/O of
Editorial
OSI Staff edit0r
OSI Feedback Representative



Replies:


Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.02293 seconds


About Us | Privacy Policy | Mission Statement | Help