How can I send an exception manually with Crittercism?

Go To StackoverFlow.com

10

I'm using the android crittercism library and trying to send a report when I catched an error level exception.

But I can't find the documentation on how to do that. Is this even possible? If so, how?

2012-04-04 08:02
by schlingel
Please elaborate why you downvoted. It kinde sucks if I get a downvote without an explanation. I have no chance in removing the error if I don't know what it is - schlingel 2012-04-04 09:00


9

They temporarily moved the feature into beta. If you e-mail support they'll enable your account for handled exceptions. Below is the sample Android code:

try
{
    throw new Exception("Exception Reason");
}
catch (Exception exception)
{
    Crittercism.logHandledException(exception);
}

Just in case you need it, here is sample code on iOS:

@try {
    [NSException raise:NSInvalidArgumentException
            format:@"Foo must not be nil"];
} @catch (NSException *exception) {
    // Pass it on to us!
    [Crittercism logHandledException:exception]
}
2012-04-12 04:41
by user235925
do you know the maximum size of the string you can use in association with the exception? i.e. if i want to upload a report, like a file with many lines to a particular crash - David T. 2014-07-01 04:23
Is there any way to achieve same using "new relic" - Brajesh Kumar 2015-03-20 11:44


5

I'm the co-founder and CTO of Crittercism. If you send me an awesome email, I can enable it for your account. I'm rob[at] :)

2012-04-12 05:03
by crittercismrob
Thank you very much - schlingel 2012-04-17 11:12
I'm glad to see the CTO is so hands on with questions from his user base. (But this should probably have been a comment in the original post. - Diederik 2013-01-24 05:57


2

Crittercism.logHandledException(new Throwable("test"));

You don't actually have to throw the Exception (or Throwable, in this case). It will appear under "Handled Exceptions" on Crittercism website.

2013-10-02 16:23
by Asaf Pinhassi
Ads