HEXA-UA/checkmobi-sdk

View on GitHub
lib/checkmobi/exceptions/exceptions.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Checkmobi
  class Error < StandardError

    attr_reader :object

    def initialize(message = nil, object = nil)
      super(message)
      @object = object
    end

  end

  class CommunicationError < Error
    attr_reader :code
  end

  class ParseError < Error; end

end