DelphiBasics
  Home  |  Delphi .net Home  |  System NameSpace
 .NET Framework
 Namespace References

 System
 
  Array  Class 
  Boolean  Structure 
  Buffer  Class 
  Byte  Structure 
  Char  Structure 
  Console  Class 
  Convert  Class 
  DateTime  Structure 
  DayOfWeek  Enumeration 
  Decimal  Structure 
  Double  Structure 
  Enum  Class 
  Environment  Class 
  Exception  Class 
  ICloneable  Interface 
  Int16  Structure 
  Int32  Structure 
  Int64  Structure 
  Math  Class 
  Object  Class 
  OperatingSystem  Class 
  Random  Class 
  SByte  Structure 
  Single  Structure 
  String  Class 
  TimeSpan  Structure 
  UInt16  Structure 
  UInt32  Structure 
  UInt64  Structure 
  Version  Class 
 System.Collections
 System.Globalization
 System.IO

 Articles and Tutorials

 Overview of .NET
 Delphi and .NET
 Winform Applications
 ASP .Net Applications
 ASP Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders

 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 

 
 
  System.Exception Class
 
 Description
Calling writeTextBlock The System.Exception class is the .Net version of the original Delphi Exception class. The latter is now mapped to the .Net version.
 
Information about exceptions occuring in an application is stored in the Exception object, available for interrogation in an exception handling routine.
 
Exception handling uses either the Try..Except..End construct or the Try..Finally..End construct. You must nest the former in the latter to get a Try..Except..Finally..End construct.
 
Note that the actual object generated for your application exception will be an ApplicationException object, a class which inherits from Exception. After writeTextBlock
 Syntax
Constructor Create ;
Constructor Create ( ErrorMessage : String );
Constructor Create ( Info : SerializationInfo; Context : StreamingContext );
Constructor Create ( ErrorMessage : String; InnerException : Exception );
 Methods
GetBaseException  Gets the lowest level base Exception that caused the current exception
ToString  Converts the Exception message and other information into a string

 Properties
HelpLink  String  Get/set a link to the help file associated with this exception.
HResult  Integer  Hex value contains severity code, a facility code, and an error code
InnerException  Exception  The inner exception creating this exception, or null
Message  String  The exception error message
Source  String  The name of the application creating the error
StackTrace  String  A string representation of the stack call trace at the time of the exception
TargetSite  MethodBase  Get the name of the method that generates this exception

 Microsoft MSDN links
 
System
System.Exception
 
Delphi Programming Neil Moffatt 2002 - 2016. All rights reserved.  |  Home Page