module SheepAst::Exception
Exception
rase functions
@api private
Public Instance Methods
application_error(msg = 'Exception occured')
click to toggle source
# File lib/sheep_ast/exception.rb, line 29 def application_error(msg = 'Exception occured') ex = ApplicationError.new(msg) ex.set_backtrace(caller) raise ex end
expression_not_found(msg = 'expression not found')
click to toggle source
# File lib/sheep_ast/exception.rb, line 36 def expression_not_found(msg = 'expression not found') ex = NotFound.new(msg) ex.set_backtrace(caller) raise ex end
missing_impl(msg = 'missing implementation')
click to toggle source
# File lib/sheep_ast/exception.rb, line 22 def missing_impl(msg = 'missing implementation') ex = MissingImpl.new(msg) ex.set_backtrace(caller) raise ex end