Exception: PostDB::DKIMError
- Inherits:
-
StandardError
- Object
- StandardError
- PostDB::DKIMError
- Defined in:
- lib/postdb/errors/dkim.rb
Overview
The DKIMError error is used by the DKIM class
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
An array containing additional arguments.
-
#attribute ⇒ Object
readonly
A suberror to describe the error in more detail.
Instance Method Summary collapse
-
#initialize(suberror = nil, *args) ⇒ DKIMError
constructor
Example: >> raise PostDB::DKIMError.new => #<PostDB::DKIMError:0x00000000000000>.
-
#to_s ⇒ Object
Convert the error to a string.
Constructor Details
#initialize(suberror = nil, *args) ⇒ DKIMError
Example:
>> raise PostDB::DKIMError.new
=> #<PostDB::DKIMError:0x00000000000000>
23 24 25 26 27 28 29 |
# File 'lib/postdb/errors/dkim.rb', line 23 def initialize(suberror = nil, *args) # Store the suberror property (if provided) @suberror = suberror if suberror # Store the arguments @arguments = args end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
An array containing additional arguments
11 12 13 |
# File 'lib/postdb/errors/dkim.rb', line 11 def arguments @arguments end |
#attribute ⇒ Object (readonly)
A suberror to describe the error in more detail
7 8 9 |
# File 'lib/postdb/errors/dkim.rb', line 7 def attribute @attribute end |
Instance Method Details
#to_s ⇒ Object
Convert the error to a string
Example:
>> error.to_s
=> "Error Description"
37 38 39 40 41 42 43 |
# File 'lib/postdb/errors/dkim.rb', line 37 def to_s case @suberror when nil else super.to_s end end |