Timeline for Java - How to represent the result of an operation
Current License: CC BY-SA 4.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 27 at 14:48 | answer | added | Joop Eggen | timeline score: 1 | |
| Feb 21 at 10:59 | comment | added | Bobby |
"the API does not prevent the client code to ask for an error message in case of an OK result" but is that really a problem? Optional does also not prevent a client from querying the value if non is present, instead it throws an error as it is basically a "misuse".
|
|
| Feb 21 at 10:14 | answer | added | Mandeep | timeline score: 7 | |
| S Feb 20 at 17:49 | history | suggested | serv-inc | CC BY-SA 4.0 |
typo + reformat
|
| Feb 20 at 15:41 | review | Suggested edits | |||
| S Feb 20 at 17:49 | |||||
| Jan 9, 2013 at 10:12 | comment | added | Adam | Thanks for the clarifying edit, that makes a lot of sense to me. | |
| Jan 9, 2013 at 9:33 | comment | added | Dušan Rychnovský | I added some background information and elaborated more on that decision. I'm not that sure about it anymore, though. Firstly, I'm not sure that the verification process itself might (in my specific case) fail. Secondly, I could use two different exception types to mark the distinction (and catch and process them separately). But I have a feeling that those two (e.g. verification failure vs. a negative response) are different concepts and should be handled differently. I mean, it is not an error in the verification process if a directory is found invalid. | |
| Jan 9, 2013 at 9:27 | history | edited | Dušan Rychnovský | CC BY-SA 3.0 |
added 48 characters in body
|
| Jan 9, 2013 at 9:16 | history | edited | Dušan Rychnovský | CC BY-SA 3.0 |
added 888 characters in body
|
| Jan 8, 2013 at 22:30 | comment | added | Adam | Are you sure you even need such a class? Why not stick with exceptions? | |
| Jan 8, 2013 at 21:52 | answer | added | ony | timeline score: 3 | |
| Jan 8, 2013 at 20:08 | answer | added | MrLore | timeline score: 3 | |
| Jan 8, 2013 at 18:21 | answer | added | tb- | timeline score: 3 | |
| Jan 8, 2013 at 17:39 | history | asked | Dušan Rychnovský | CC BY-SA 3.0 |