Re: problem with change to exceptions



Neal Becker <ndbecker2@xxxxxxxxx> wrote in
news:f8e0g4$o1u$1@xxxxxxxxxxxxx:

Alex Popescu wrote:

Neal Becker <ndbecker2@xxxxxxxxx> wrote in
news:f8dspe$fm2$1@xxxxxxxxxxxxx:


[snip...]



You can pass to the exception:
a) a string (it will become the message)
b) a tuple of values (can it be a list also?)

In your case there is no message, no values so args is NoneType.

Yes, args is None. So the assignment:
self.args = args

should set self.args to None. Nothing wrong there, and what has this
got to do with NoneType being iterable?


args are used to generate the traceback when a message was not provided.

../alex
--
..w( the_mindstorm )p.



.



Relevant Pages

  • SMTP mailing problem (sending 1000 messages)
    ... The exception in below. ... Binder binder, Object target, Objectargs, ParameterModifiermodifiers, ... CultureInfo culture, String[] namedParameters) ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • SMTP mailing problem (sending 1000 messages)
    ... The exception in below. ... Binder binder, Object target, Objectargs, ParameterModifiermodifiers, ... CultureInfo culture, String[] namedParameters) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Xlint " warning: [unchecked] unchecked conversion"
    ... public static void main(Stringargs) throws Exception { ... Hashtable <String, Vector<String>> ht = ... conversion" warning for that line in main? ...
    (comp.lang.java.programmer)
  • try & catch
    ... static void Main(stringargs) ... string x = null; ... Exception ex = new Exception; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Client "Host not found"
    ... public static void main (String args[]) throws Exception { ...
    (microsoft.public.sqlserver.jdbcdriver)