Message = "TypeMismatchException in " + sourceĮlseIf error IsA UnsupportedFormatException Then Message = "ThreadAlreadyRunningException in " + sourceĮlseIf error IsA TypeMismatchException Then Message = "StackOverflowException in " + sourceĮlseIf error IsA ThreadAlreadyRunningException Then Message = "ShellNotRunningException in " + sourceĮlseIf error IsA StackOverflowException Then Message = "ShellNotAvailableException in " + sourceĮlseIf error IsA ShellNotRunningException Then Message = "Unhandled ServiceNotAvailableException error in " + sourceĮlseIf error IsA ShellNotAvailableException Then Message = "Unhandled RegistryAccessErrorException error in " + sourceĮlseIf error IsA ServiceNotAvailableException Then Message = "Unhandled RuntimeException error in " + source Message = "RegExSearchPatternException in " + sourceĮlseIf error IsA RegistryAccessErrorException Then Message = "Unhandled XojoScriptException error in " + sourceĮlseIf error IsA RegExSearchPatternException Then Message = "Unhandled XojoScriptAlreadyRunningException error in" + sourceĮlseIf error IsA XojoScriptException Then Message = "OutOfMemoryException in " + sourceĮlseIf error IsA XojoScriptAlreadyRunningException Then Message = "OutOfBoundsException in " + sourceĮlseIf error IsA OutOfMemoryException Then Message = "Unhandled OLEException error in " + sourceĮlseIf error IsA OutOfBoundsException Then Message = "Unhandled NoOpenTransportException error in" + source Message = "NilObjectException in " + sourceĮlseIf error IsA NoOpenTransportException Then Message = "KeyNotFoundException in " + source Message = "Ke圜hainException in " + sourceĮlseIf error IsA KeyNotFoundException Then Message = "Unhandled InvalidParentException error in "+ source Message = "IllegalLockingException in " + sourceĮlseIf error IsA InvalidParentException Then Message = "IllegalCastException in " + sourceĮlseIf error IsA IllegalCastException ThenĮlseIf error IsA IllegalLockingException Then If error IsA FunctionNotFoundException Then See the examples for the AttributeInfo, ConstructorInfo, MemberInfo, MethodInfo, PropertyInfo, TypeInfo, and ParameterInfo for examples of those classes.įunction HandleException(error As RuntimeException, source As String) As Boolean The following example in the Action event of a PushButton in a window gets information about the class instance and displays the name of its class. It is an abstract class that describes all the attributes or members a datatype might have. The root of the introspection system and the primary way to access program metadata. Provides information on the properties of the datatype. Use the MethodInfo.GetParameters function to obtain a ParameterInfo array to get the parameter info. Provides information on the parameters of methods belonging to the class. Use the GetParameters function of this class to get information on the parameters of each method in the class. Provides information on the methods in the datatype. Contains a property that contains the datatype's name. The super class for AttributeInfo, ConstructorInfo, MethodInfo, PropertyInfo, and TypeInfo. Use the GetParameters function of this class to get information about the parameters of the constructors. Provides information about a datatype’s constructors. Each attribute consists of its identifier (name) and optionally a value. Attributes are compile-time properties that are created via the Attributes Editor in the IDE. Provides information about an item’s attributes.
ClassesĮach class is described in its own section.
Classes and methods in the Introspection module have Public rather than Global scope, so references to them must include the module name. Gets information about a program’s structure at runtime.