Exception: RTF::RTFError
- Inherits:
-
StandardError
- Object
- StandardError
- RTF::RTFError
- Defined in:
- lib/rtf.rb
Overview
This is the exception class used by the RTF library code to indicate errors.
Class Method Summary collapse
-
.fire(message = nil) ⇒ Object
This method provides a short cut for raising RTFErrors.
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ RTFError
constructor
This is the constructor for the RTFError class.
Constructor Details
#initialize(message = nil) ⇒ RTFError
This is the constructor for the RTFError class.
Parameters
- message
-
A reference to a string containing the error message for the exception defaults to nil.
22 23 24 |
# File 'lib/rtf.rb', line 22 def initialize(=nil) super( == nil ? 'No error message available.' : ) end |