Exception: ALSA::Aconnect::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ALSA::Aconnect::Error
- Defined in:
- lib/alsa/aconnect/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(code, msg) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, msg) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 |
# File 'lib/alsa/aconnect/error.rb', line 8 def initialize(code, msg) @code = code @msg = msg super("Exited with status #{code}: #{msg}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/alsa/aconnect/error.rb', line 6 def code @code end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
6 7 8 |
# File 'lib/alsa/aconnect/error.rb', line 6 def msg @msg end |