• entries
    4
  • comments
    6
  • views
    1902

I will implement this code one day

Celtore

424 views

using System;class Derp{    static int Main(string[] args)    {        try        {            if(true)            {                Exception ex = new Exception("DERP");                /*                    Look at this .NET, that I just found!                    When I say go, be ready to throw!                    Go!                */                throw ex;            }            ...        }        catch (Exception)        {            //Ugh, lets try something else...            return -1;        }        return 0;    }}


Pointless, but kind of a fun idea. I like it more than "Let it throw."

  • Brohoof 1


2 Comments


Recommended Comments

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.