--- parser3/src/classes/mail.C 2002/07/31 14:58:00 1.72 +++ parser3/src/classes/mail.C 2002/08/07 07:35:45 1.75 @@ -3,10 +3,10 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - - $Id: mail.C,v 1.72 2002/07/31 14:58:00 paf Exp $ */ +static const char* IDENT_MAIL_C="$Date: 2002/08/07 07:35:45 $"; + #include "pa_config_includes.h" #include "pa_common.h" @@ -274,12 +274,13 @@ static void sendmail(Request& r, const S char *message_cstr=message.cstr(); Hash *mail_conf=static_cast(r.classes_conf.get(mail_base_class->name())); + const char *exception_type="email.format"; if(!from) - throw Exception("parser.runtime", + throw Exception(exception_type, &method_name, "parameter does not specify 'from' header field"); if(!to) - throw Exception("parser.runtime", + throw Exception(exception_type, &method_name, "parameter does not specify 'to' header field"); #ifdef _MSC_VER @@ -349,7 +350,7 @@ static void sendmail(Request& r, const S } if(!file_executable(*file_spec)) - throw Exception(0, + throw Exception("email.send", file_spec, "is not executable." #ifdef PA_FORCED_SENDMAIL @@ -374,7 +375,7 @@ static void sendmail(Request& r, const S &argv, in, out, err); if(exit_status || err.size()) - throw Exception(0, + throw Exception("email.send", &method_name, "'%s' reported problem: %s (%d)", file_spec->cstr(),