13

Haven't found any catch block that has anything other than:
// TODO Handle Exception

Comments
  • 0
    psv main() throws Object

    //Done for today
  • 0
    Can’t say that now
    @highlight

    try {
    echo inverse(5) . "\n";
    echo inverse(0) . "\n";
    } catch (Exception $e) {
    echo 'Caught exception: ', $e->getMessage(), "\n";
    }
  • 0
  • 1
    @highlight

    try {
    return publisher.Publish(event);
    }
    catch (Exception e) {
    _logger.LogCritical("Fuck");
    throw;
    }
  • 1
  • 0
    I do this way too often 😁:

    try
    {
    WhateverMethod();
    }
    catch (Exception ex)
    {
    Console.WriteLine(ex);
    }

    Well, at least while writing fresh code...
  • 0
    @msicc At least you have some information if an exception has happened!
  • 1
    @Plasticnova Haha! I meant in the new project I just hopped on. But thanks for making my day. :)
  • 0
    in python a few things that search for items in other items throw exceptions if they're not there, which is dumb, but requires try/catch to not crash. (I've used this occasionally as it's all I can use sometimes.
  • 0
    try {
    blahblahoof
    }.catch(err) {
    Console.log("Delete this shit --> " + err);
    }

    //Problem solved
Add Comment