class Rnotifier::ConfigTest

Public Class Methods

test() click to toggle source
# File lib/rnotifier/config_test.rb, line 6
def self.test
  begin
    raise TestException.new('Test exception')
  rescue Exception => e
    if status = Rnotifier.exception(e, {})
      puts "Test Exception sent. Login to www.rnotifier.com and checkout."
    else
      puts "Problem sending exception to www.rnotifier.com. Check your API key or config."
    end
    status
  end
end