Skip to content

Object to represent individual error

lulalala edited this page Apr 10, 2017 · 1 revision

Currently one error's information is spread between two places:

# Message
errors[:foo][:bar]
# Details
errors.details[:foo]

Having a handle to the details does not makes it easier to access its message. One still has to do some traversing to get it.

If we can have an object to wrap the two together, it is easier to manipulate.

Clone this wiki locally