Exception: Cloudflare::Email::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Cloudflare::Email::Error
- Defined in:
- lib/cloudflare_workers/email.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: nil) ⇒ Error
Returns a new instance of Error.
21 22 23 24 |
# File 'lib/cloudflare_workers/email.rb', line 21 def initialize(, code: nil) @code = code super(.to_s) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
19 20 21 |
# File 'lib/cloudflare_workers/email.rb', line 19 def code @code end |