Exception: BlueCloth::FormatError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BlueCloth::FormatError
- Defined in:
- lib/bluecloth_tweaked.rb
Overview
Exception class for formatting errors.
Instance Method Summary collapse
-
#initialize(str, specific = nil) ⇒ FormatError
constructor
Create a new FormatError with the given source
str
and an optional message about thespecific
error.
Constructor Details
#initialize(str, specific = nil) ⇒ FormatError
Create a new FormatError with the given source str
and an optional message about the specific
error.
72 73 74 75 76 77 78 79 80 |
# File 'lib/bluecloth_tweaked.rb', line 72 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 |