Exception: PostcodeAnywhere::EmailValidation::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/postcode_anywhere/email_validation/validation_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, metadata = {}) ⇒ ValidationError

Returns a new instance of ValidationError.



7
8
9
10
11
12
13
# File 'lib/postcode_anywhere/email_validation/validation_error.rb', line 7

def initialize(message,  = {})
  super(message)

  @code       = [:code]
  @cause      = [:cause]
  @resolution = [:resolution]
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



5
6
7
# File 'lib/postcode_anywhere/email_validation/validation_error.rb', line 5

def cause
  @cause
end

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/postcode_anywhere/email_validation/validation_error.rb', line 5

def code
  @code
end

#resolutionObject (readonly)

Returns the value of attribute resolution.



5
6
7
# File 'lib/postcode_anywhere/email_validation/validation_error.rb', line 5

def resolution
  @resolution
end