Sha256: c498a43e6c7965d8184d94d7eeba1c9788c78ecf83af91d006a7dd7e809dc408

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

module WebToPay
  class Exception < ::Exception
    # Missing field.
    E_MISSING = 1

    # Invalid field value.
    E_INVALID = 2

    # Max length exceeded.
    E_MAXLEN = 3

    # Regexp for field value doesn't match.
    E_REGEXP = 4

    # Missing or invalid user given parameters.
    E_USER_PARAMS = 5

    # Logging errors
    E_LOG = 6

    # SMS answer errors
    E_SMS_ANSWER = 7

    attr_accessor :code, :field_name
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
nma-webtopay-1.2.1 lib/webtopay/exception.rb
webtopay-1.2.1 lib/webtopay/exception.rb
webtopay-1.2.0 lib/webtopay/exception.rb