Exception: LibreTranslate::Error
- Inherits:
-
StandardError
- Object
- StandardError
- LibreTranslate::Error
- Defined in:
- lib/libre_translate/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(code, message) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/libre_translate/error.rb', line 5 def initialize(code, ) @code = code @message = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/libre_translate/error.rb', line 3 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/libre_translate/error.rb', line 3 def @message end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/libre_translate/error.rb', line 10 def to_s end |