Exception: PostcodeAnywhere::EmailValidation::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- PostcodeAnywhere::EmailValidation::ValidationError
- Defined in:
- lib/postcode_anywhere/email_validation/validation_error.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#resolution ⇒ Object
readonly
Returns the value of attribute resolution.
Instance Method Summary collapse
-
#initialize(message, metadata = {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
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(, = {}) super() @code = [:code] @cause = [:cause] @resolution = [:resolution] end |
Instance Attribute Details
#cause ⇒ Object (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 |
#code ⇒ Object (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 |
#resolution ⇒ Object (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 |