flutter_hexagonal_architecture library

Classes

CoreError
CoreError provides errors to the client. code and description are returned to the client into a UseCaseResponseMessage and presenters. code property can be used to get a localized error message, while description is used only by developers into the console.
GatewayResponse<TResult>
GatewayResponse is an object that returns data from the repositories or services to the use cases.
InfraError
InfraError provides errors to the client.
IOutputPort<TUseCaseResponse>
IOutputPort is an interface used to execute a use case.
IPresenter<TResult>
Presenter is an interface containing the result of use cases. It has a generic type of wanted value.
IUseCaseRequest<TUseCaseResponse>
IUseCaseRequest is an interface for the use case request.
IUseCaseRequestHandler<TUseCaseRequest extends IUseCaseRequest<TUseCaseResponse>, TUseCaseResponse>
IUseCaseRequestHandler is an interface for the use case. It defines the type of the response.
ObjectPresenter<TResult>
Presenter is an object containing the result of use cases. It has a generic type of wanted value.
UseCaseResponseMessage<TResult>
UseCaseResponseMessage is an object that receive data to return to the client.

Exceptions / Errors

UseCaseException
UseCaseException is an exception to use into a use case. code and description are returned to the client using by CoreError into a UseCaseResponseMessage and presenters. code property can be used to get a localized error message, while description is used only by developers into the console.