Exception: BlueCloth::Transform::FormatError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BlueCloth::Transform::FormatError
- Defined in:
- lib/bluecloth/transform.rb
Overview
Exception class for formatting errors.
Instance Method Summary (collapse)
-
- (FormatError) initialize(str, specific = nil)
constructor
Create a new FormatError with the given source str and an optional message about the specific error.
Constructor Details
- (FormatError) initialize(str, specific = nil)
Create a new FormatError with the given source str and an optional message about the specific error.
63 64 65 66 67 68 69 70 71 |
# File 'lib/bluecloth/transform.rb', line 63 def initialize(str, specific = nil) if specific msg = "Bad markdown format near %p: %s" % [ str, specific ] else msg = "Bad markdown format near %p" % str end super( msg ) end |