12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- using System;
- using System.Web.Services.Protocols;
- using System.Text;
- using cognosdotnet_10_2;
- using System.Xml;
- using System.Windows.Forms;
- namespace SamplesCommon
- {
-
-
-
- public class SamplesException
- {
-
-
-
- private SamplesException()
- {
- }
-
-
-
-
-
- public static string FormatException( SoapException ex ) {
- return ExceptionHelper.ConvertToString( ex );
- }
-
-
-
-
-
- public static void ShowExceptionMessage( SoapException ex, bool gui, string title )
- {
- string error = ExceptionHelper.ConvertToString( ex );
- if( gui )
- {
- MessageBox.Show( error, title, MessageBoxButtons.OK, MessageBoxIcon.Error );
- } else
- {
- Console.WriteLine( error );
- }
- }
- public static string getExceptionMessage( SoapException ex)
- {
- return ExceptionHelper.ConvertToString( ex );
- }
- public static void ShowExceptionMessage( string error, bool gui, string title )
- {
- if( gui )
- {
- MessageBox.Show( error, title, MessageBoxButtons.OK, MessageBoxIcon.Error );
- }
- else
- {
- Console.WriteLine( error );
- }
- }
- }
- }
|