class AoBane::FormatError

Exception class for formatting errors.

Public Class Methods

new( str, specific=nil ) click to toggle source

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

Calls superclass method
# File lib/AoBane.rb, line 100
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