-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Labels
Description
CreationException
is marked as @Deprecated
.
I think it's rather kludgy to fail with exceptions in general. Many developers don't even know how to handle exceptions or care about handling them, using try-catch block to suppress them (sic!):
try {
veryImportantThng = makeStuff();
} catch(VeryNastyException ex) {
log(ex);
}
continue and probably crash later
Maybe we can return a client that fast-fails the operation? This way we can remove a lot of checks in the client code and make it safer:
- no edge cases
- no null handling
Originally posted by @ezaquarii in nextcloud/android#4900
AndyScherzinger