Exception: Postjob::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Postjob::Error
- Defined in:
- lib/postjob/error.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Encoding, Nonrecoverable
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(err) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(err) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 11 |
# File 'lib/postjob/error.rb', line 5 def initialize(err) case err when ::Postjob::Job then = job_error_msg(err) when nil, false then = self.class.name else = err.to_s end end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/postjob/error.rb', line 3 def end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/postjob/error.rb', line 13 def to_s end |