Exception: Yay::BadFilenameError
- Defined in:
- lib/yay/errors.rb
Overview
thrown when an invalid filename was entered
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(value) ⇒ BadFilenameError
constructor
A new instance of BadFilenameError.
- #printable_message ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(value) ⇒ BadFilenameError
Returns a new instance of BadFilenameError.
29 30 31 |
# File 'lib/yay/errors.rb', line 29 def initialize value @value = value end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
27 28 29 |
# File 'lib/yay/errors.rb', line 27 def @message end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
26 27 28 |
# File 'lib/yay/errors.rb', line 26 def value @value end |
Instance Method Details
#printable_message ⇒ Object
33 34 35 |
# File 'lib/yay/errors.rb', line 33 def return "Invalid filename #{value} entered" end |