Exception: LockError
- Defined in:
- lib/amp/support/support.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#errno ⇒ Object
readonly
Returns the value of attribute errno.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(errno, strerror, filename, desc) ⇒ LockError
constructor
A new instance of LockError.
- #to_s ⇒ Object
Constructor Details
#initialize(errno, strerror, filename, desc) ⇒ LockError
Returns a new instance of LockError.
52 53 54 55 |
# File 'lib/amp/support/support.rb', line 52 def initialize(errno, strerror, filename, desc) super(strerror) @errno, @filename, @desc = errno, filename, desc end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
51 52 53 |
# File 'lib/amp/support/support.rb', line 51 def desc @desc end |
#errno ⇒ Object (readonly)
Returns the value of attribute errno.
51 52 53 |
# File 'lib/amp/support/support.rb', line 51 def errno @errno end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
51 52 53 |
# File 'lib/amp/support/support.rb', line 51 def filename @filename end |
Instance Method Details
#to_s ⇒ Object
56 57 58 |
# File 'lib/amp/support/support.rb', line 56 def to_s "LockError (#{@errno} @ #{@filename}) #{@strerror}: #{super}" end |