Class: Rnotifier::ConfigTest

Inherits:
Object
  • Object
show all
Defined in:
lib/rnotifier/config_test.rb

Defined Under Namespace

Classes: TestException

Class Method Summary collapse

Class Method Details

.testObject



6
7
8
9
10
11
12
13
14
15
16
17
# 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