lib/enceladus/exceptions.rb in enceladus-0.0.3 vs lib/enceladus/exceptions.rb in enceladus-0.0.4

- old
+ new

@@ -1,5 +1,12 @@ module Enceladus::Exception - class Base < ::Exception; end + class Base < ::Exception + def initialize(message) + Enceladus::Logger.log.error { message } + super(message) + end + end + class Api < Base; end class ArgumentError < Base; end + class JsonParseError < Base; end end \ No newline at end of file