lib/wolf_core/application/service_exception.rb



module WolfCore
  class ServiceException < StandardError
    attr_reader :error

    def initialize(error)
      @error = OpenStruct.new(
        { message: 'error' }.merge(error)
      )
      super(@error[:message])
    end
  end
end