Ejemplo n.º 1
0
 /// <summary>
 /// Creates a client SoapException
 /// </summary>
 /// <param name="message">
 /// The message that should appear at Details/ErrorMessage
 /// </param>
 /// <returns>
 /// A SoapException
 /// </returns>
 private SoapException ThrowClientSoapException(string message)
 {
     return(SoapFaultFactory.CreateSoapException(
                this._initialiserVo.MethodName,
                string.Empty,
                message,
                Resources.error_client_code,
                this._initialiserVo.MethodName,
                true,
                Resources.error_client_msg));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a server SoapException
        /// </summary>
        /// <param name="ex">
        /// The exception that causes this error
        /// </param>
        /// <returns>
        /// A SoapException
        /// </returns>
        private SoapException ThrowServerSoapException(Exception ex)
        {
            // TODO log server exceptions
            string source = this.GetType().Name;

            return(SoapFaultFactory.CreateSoapException(
                       source,
                       string.Empty,
                       ex.ToString(),
                       Resources.error_server_code,
                       source,
                       false,
                       Resources.error_server_msg));
        }