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
CreationExceptionis 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!):
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:
Originally posted by @ezaquarii in nextcloud/android#4900