kinetic_cafe_error provides an API-smart error base class and a DSL for defining errors. Under Rails, it also provides a controller concern (KineticCafe::ErrorHandler) that has a useful implementation of +rescue_from+ to handle KineticCafe::Error types. Exceptions in a hierarchy can be handled in a uniform manner, including getting an I18n translation message with parameters, standard status values, and meaningful JSON representations that can be used to establish a standard error representations across both clients and servers.
Required Ruby Version
~> 2.1
Authors
Austin Ziegler, Jero Sutlovic, Ravi Desai
Versions
-
1.12
-
source
- 1.12 source May 27, 2016 (29 KB)
-
-
1.11
-
source
- 1.11 source May 24, 2016 (27.5 KB)
-
-
1.10
-
source
- 1.10 source March 25, 2016 (28.5 KB)
-
-
1.9
-
source
- 1.9 source November 30, 2015 (28 KB)
-
-
1.8.1
-
source
- 1.8.1 source October 26, 2015 (27.5 KB)
-