From: Chris M. <cm...@us...> - 2006-10-10 03:41:11
|
User: cmicali Date: 06/10/09 20:41:11 Modified: andromda-nspring/src/main/resources/templates/nspring NSpringServiceException.vsl Log: - Temporarily disabled most functionality to fix a build break in Visual Studio with a freshly generated app from android Revision Changes Path 1.2 +33 -1 cartridges/andromda-nspring/src/main/resources/templates/nspring/NSpringServiceException.vsl Index: NSpringServiceException.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nspring/src/main/resources/templates/nspring/NSpringServiceException.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- NSpringServiceException.vsl 2 Oct 2006 01:21:47 -0000 1.1 +++ NSpringServiceException.vsl 10 Oct 2006 03:41:11 -0000 1.2 @@ -8,14 +8,46 @@ using System; using System.Xml; using System.Runtime.Serialization; +/* using System.Web; using System.Web.Services.Protocols; +*/ #if ($stringUtils.isNotBlank($service.packageName)) namespace $service.packageName { #end + public class ${service.name}Exception : System.ApplicationException + { + + /// <summary> + /// Initializes a new instance of ${service.name}Exception with a specified error message. + /// </summary> + /// <param name="message">A message that describes the error.</param> + internal ${service.name}Exception(Exception e) + : base(e.Message, e) + { + } + + /// <summary> + /// Create a new instance of the ${service.name}Exception. + /// </summary> + /// <param name="exception">Actual exception that contains the error information.</param> + public static ${service.name}Exception Create(Exception e) + { + if (e is ${service.name}Exception) + { + return (${service.name}Exception)e; + } + else + { + return new ${service.name}Exception(e); + } + } + } + +n/* [Serializable] public class ${service.name}Exception : System.ApplicationException, ISerializable { @@ -254,7 +286,7 @@ return messageNode; } } - +*/ #if ($stringUtils.isNotBlank($service.packageName)) } #end \ No newline at end of file |