LoggerClass.vbs

Global Constant Summary

INTERNAL_ERROR: 51

Error number for internal errors.


INVALID_ARGUMENT: 5

Error number for an invalid argument being passed to a procedure.

Classes Summary

Logger

Class for abstract logging to one or more logging facility.

Global Procedure Summary

FormatErrorMessage(e)

Create an error message from the given Err object's properties.

Global Constant Detail

INTERNAL_ERROR

Public Const INTERNAL_ERROR = 51

Error number for internal errors.

See Also:

http://msdn.microsoft.com/en-us/library/xe43cc8d


INVALID_ARGUMENT

Public Const INVALID_ARGUMENT = 5

Error number for an invalid argument being passed to a procedure.

See Also:

http://msdn.microsoft.com/en-us/library/xe43cc8d

Global Procedure Detail

FormatErrorMessage

Public FormatErrorMessage(e)

Create an error message from the given Err object's properties. Formatted messages will look like this: "Foo bar (0xDEAD)".

Implemented as a global function due to general lack of static methods in VBScript.

Parameters:

e - Err object

Returns:

Formatted error message consisting of error description and hexadecimal error number. Empty string if neither error description nor error number are available.