HTException Class

Class Name: HTException

Scope: Public - Unrestricted

 

The HTException Object is a utility object used across all of the SQL API objects to indicate to the programmer whether an error condition exists or was encountered after an operation or method call. It is a public class object which means that you can also use it in your own applications if you like.

 

Before you begin.Object Definition and Properties

 

 

Common Exceptions Interface

 

You will find that all of the complex objects in the SQL Engine API have a common Exceptions interface that implements the HTException Object in the exact same way for every object. Whenever possible we try to avoid having the API DLLs actually THROW a system exception, opting instead to trap system exceptions and place error information into a LastException property on each object. The Exceptions properties and methods will be common throughout every class object that subscribes the Common Exceptions Interface.

 

Common Exceptions Interface Properties and Methods for all objects that subscribe.

 

LastException (ReadOnly) - HTException Object

LastError (ReadOnly) - String - Echos the ExceptionMessage property of the LastException.

ClearErrors() - Calls the Clear() method of the LastException object.

IsError (ReadOnly) - Boolean - Echoes the HasException property of the HTException object IE:  Indicates whether there is an exception by evaluating the LastError property ( LastError.Length > 0)

 

 

© 2015 HermeTech International
(a Division of TransWorld Scribes)