Exception: BlueFeather::FormatError

Inherits:
Error
  • Object
show all
Defined in:
lib/bluefeather.rb

Overview

Exception class for formatting errors.

Instance Method Summary collapse

Constructor Details

#initialize(str, specific = nil) ⇒ FormatError

Create a new FormatError with the given source str and an optional message about the specific error.



90
91
92
93
94
95
96
97
98
# File 'lib/bluefeather.rb', line 90

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