return_success_or_error
library
Classes
-
Datasource<TypeDatasource>
-
Implement the datasource by typing with the expected data type. Override the
call method involving logic in a try catch to return the typed data in case
of success, or a throw returning the AppError received in the
ParametersReturnResult.
-
ErrorReturn<R>
-
Responsible for storing the returned data when error.
-
Nil
-
-
NoParams
-
Implementation used when the datasource does not require extra parameters.
It receives the Error directly.
-
ParametersReturnResult
-
Responsible for storing and processing the data necessary to execute the
datasource call.
-
ReturnSuccessOrError<R>
-
-
RuntimeMilliseconds
-
Assists in evaluating the performance of the datasource implementation.
-
SuccessReturn<R>
-
Responsible for storing the returned data when successful.
-
Unit
-
-
UsecaseBase<TypeUsecase>
-
-
UsecaseBaseCallData<TypeUsecase, TypeDatasource>
-
Exceptions / Errors
-
AppError
-
calsse implements Exception and requires the String with the error message.
-
ErrorGeneric
-