for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
module Koine
module Attributes
class ArgumentError < ::ArgumentError
attr_reader :attribute_name
def initialize(error, attribute_name = nil)
@attribute_name = attribute_name
if error.is_a?(Exception)
super(error.message)
set_backtrace(error.backtrace)
return
end
super(error)