e2713501ce
* The members of Result are isSuccess, isFailure, exceptionOrNull, getOrNull * The rest of API is implemented via inline-only extensions * There are two internal functions to hide detailed mechanics of an internal Result.Failure class: createFailure and throwOnFailure * Result.toString is explicit: either Success(v) or Failure(x) See KT-26538
8 lines
238 B
HTML
8 lines
238 B
HTML
<html>
|
|
<body>
|
|
This inspection reports functions with <b>Result</b> result.
|
|
|
|
<b>Result</b> should never be used as return type.
|
|
Throw exception, or use nullable type, or use domain-specific result class to indicate failure.
|
|
</body>
|
|
</html> |