how to log a simple message?

marcel's Avatar

marcel

08 Oct, 2010 09:18 PM

I want to log an "error" state to Exceptional, but I don't have an actual exception object to pass in. I just want to send a simple string such as "websolr is unavailable". Is there a way to do this, or do I really have to create a dummy exception object?

This person had the same question, but I don't think the answer matches the question:

http://support.getexceptional.com/discussions/questions/364-how-to-...

  1. 1 Posted by Ciaran Lee on 11 Oct, 2010 11:51 AM

    Ciaran Lee's Avatar

    Hi Marcel,

    You will need to create a dummy exception if you do not have one. Something like this:
    Exceptional.handle (Exception.new, 'some error message')

    Regards,
    Ciaran Lee

  2. Ciaran Lee closed this discussion on 11 Oct, 2010 11:51 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac