Exception: Xampl::XamplException
- Inherits:
-
Exception
- Object
- Exception
- Xampl::XamplException
- Defined in:
- lib/xamplr/exceptions.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, message = nil) ⇒ XamplException
constructor
A new instance of XamplException.
- #message ⇒ Object
Constructor Details
#initialize(name, message = nil) ⇒ XamplException
Returns a new instance of XamplException.
44 45 46 47 |
# File 'lib/xamplr/exceptions.rb', line 44 def initialize(name, =nil) @name = name @msg = ? : "" end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
42 43 44 |
# File 'lib/xamplr/exceptions.rb', line 42 def msg @msg end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
42 43 44 |
# File 'lib/xamplr/exceptions.rb', line 42 def name @name end |
Instance Method Details
#message ⇒ Object
49 50 51 |
# File 'lib/xamplr/exceptions.rb', line 49 def "XamplException #{@name} #{@msg}" end |