3 Replies - 1634 Views - Last Post: 12 August 2012 - 02:12 AM Rate Topic: -----

#1 stackoverflow  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 164
  • View blog
  • Posts: 545
  • Joined: 06-July 11

I'd like to catch some more of that..

Posted 25 July 2012 - 01:35 PM

*
POPULAR

I bumped into this here at work. :P

try {
        // code goes here
}
catch (SecurityNegotiationException sex)
			{
				_lastError = "Username or Password Incorrect";
				Logger.WriteLine(sex);
				return false;
			}



Is This A Good Question/Topic? 5
  • +

Replies To: I'd like to catch some more of that..

#2 mostyfriedman  Icon User is offline

  • The Algorithmi
  • member icon

Reputation: 727
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: I'd like to catch some more of that..

Posted 25 July 2012 - 01:51 PM

I like how the exception is called sex :D
Was This Post Helpful? 0
  • +
  • -

#3 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3530
  • View blog
  • Posts: 10,172
  • Joined: 08-June 10

Re: I'd like to catch some more of that..

Posted 25 July 2012 - 10:22 PM

then you’ll probably like the example PHP variable: $ex
Was This Post Helpful? 2
  • +
  • -

#4 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3552
  • View blog
  • Posts: 11,010
  • Joined: 05-May 12

Re: I'd like to catch some more of that..

Posted 12 August 2012 - 02:12 AM

Somebody once told me: if flies, floats, or f*cks, in the long run it's better to rent than to buy. He must have been a PHP programmer.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1