lib/moneta/api/exception.rb in moneta-api-1.7.0 vs lib/moneta/api/exception.rb in moneta-api-1.8.0
- old
+ new
@@ -1,5 +1,9 @@
module Moneta
module Api
- class Exception < StandardError; end
+ class Exception < StandardError
+ def to_hash
+ { message: message }
+ end
+ end
end
end