Exception: PackageException
- Defined in:
- lib/poolparty/exceptions/package_exception.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(msg = "Package error") ⇒ PackageException
constructor
A new instance of PackageException.
Constructor Details
#initialize(msg = "Package error") ⇒ PackageException
Returns a new instance of PackageException.
4 5 6 |
# File 'lib/poolparty/exceptions/package_exception.rb', line 4 def initialize(msg="Package error") @message = "Package error: #{msg}" end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
2 3 4 |
# File 'lib/poolparty/exceptions/package_exception.rb', line 2 def @message end |