class Sqreen::Exception
TODO: do we really want this to be StandardError? Base exeception class for sqreen
Public Class Methods
new(msg = nil, *args)
click to toggle source
Calls superclass method
# File lib/sqreen/exception.rb, line 12 def initialize(msg = nil, *args) super(msg, *args) log_message msg if msg end
Public Instance Methods
log_message(msg)
click to toggle source
# File lib/sqreen/exception.rb, line 17 def log_message(msg) Sqreen.log.error(msg) end