MfException

Namespace ›› System ››
Parent Previous Next

MfException Class

(Inherits from MfObject)

Represents errors that occur during application execution.

Links

Properties, Methods

Constructors


Name

Description

Constructor()

Initializes a new instance of the MfException class.

Constructor(message)

Initializes a new instance of MfException class with a specified error message

Constructor(message, innerException)

Initializes a new instance of MfException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Properties


Name

Description

Data

Gets the Data value associated with the this instance as MfDictionary object.

File

Gets or sets the File name the error occur in

HelpLink

Gets or sets a link to the help file associated with this exception.

HrResult

Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.

InnerException

Gets the MfException instance or derived exception that caused the current exception.

Line

Gets or sets the Line the error occur on

Message

Gets a message that describes the current exception.

Source

Gets or sets the name of the application or the object that causes the error.

Methods


Name

Description

AddAttribute()

Adds MfAttribute extended items to extended classes. Inherited from MfObject.

CompareTo(obj)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. Overrides MfObject.CompareTo()

ConvertFromException(e)

Converts an AutoHotkey Exception object to MfException object

Equals(obj)

Compares obj to current instance to see if they are the same. Inherited from MfObject.

GetAttribute(index)

Gets an MfAttribute of the class. Inherited from MfObject.

GetAttributes()

Gets a MfGenericList of MfAttribute that Contains the attributes for the current class instance. Inherited from MfObject.

GetHashCode()

Gets A hash code for the current MfException or derived class. Overrides MfObject.GethashCode().

GetIndexOfAttribute(attrib)

Gets the zero-based index value of the position of MfAttribute within the instance of the class. Inherited from MfObject.

GetType()

Gets the Type for the for the Class .Inherited from MfObject.

HasAttribute(attrib)

Gets if the current instance of class derived from MfSystemException has MfAttribute. Inherited from MfObject.

Is(type)

Gets if current instance of object is of the same type. Inherited from MfObject. Inherited from MfObject.

IsInstance()

Get if the current class is an instance. Inherited from MfObject.

MemberwiseClone()

Creates a shallow copy of the current MfObject instance. Inherited from MfObject.

SetProp()

Sets File to MfString.Empty. Sets Line to 0. Sets Source to null.

SetProp(file)

Sets File to the value of file Line is unchanged. Source is unchanged.

SetProp(file, line)

Sets File to the value of file. Sets Line to the value of line. Source is unchanged.

SetProp(file, line, source)

Sets File to the value of file. Sets Line to the value of line. Sets Source to the value of source.

ToString()

Creates and returns a string representation of the current MfException. Overrides MfObject.ToString().

VerifyIsInstance([ClassName, LineFile, LineNumber, Source])

Verifies the the current object is set to an instance. Inherited from MfObject.

VerifyIsNotInstance([MethodName, LineFile, LineNumber, Source])

Verifies the the current object is NOT set to an instance. Used in Static methods. Inherited from MfObject.

Example

Myfunction(x)
{
   try
   {
       DoSomething(x)
   } catch e {
       err := new MfException("Error, DoSomething did not succeed", e)
       exr.SetProp(A_LineFile, A_LineNumber, A_ThisFunc)
       throw err
   }
}