lua-errhandler

A simple Lua library for handling success and error results using classes and method chaining.

$ luarocks install lua-errhandler

A simple Lua library for handling success and error results using classes and method chaining.
- Success Class: Represents a successful result with methods to retrieve the result, handle default values, and check its success status.
- Error Class: Represents an error result with methods to handle error propagation and check its error status.
- Result Class: Facilitates calling a function that might succeed or fail, returning either Success or Error.

Versions

1.0-1143 days ago6 downloads

Dependencies

lua >= 5.1

Manifests