Error Type Functions

Functions

Name

Description

Error.argument Function

Creates an Error object that represents the Sys.ArgumentException exception.

Error.argumentNull Function

Creates an Error object that represents the Sys.ArgumentNullException exception.

Error.argumentOutOfRange Function

Creates an Error object that represents the Sys.ArgumentOutOfRangeException exception.

Error.argumentType Function

Creates an Error object that represents the Sys.ArgumentTypeException exception.

Error.argumentUndefined Function

Creates an Error object that represents the Sys.ArgumentUndefinedException exception.

Error.create Function

Creates an Error object that has optional additional error information.

Error.format Function

Creates an Error object that represents the Sys.FormatException exception.

Error.invalidOperation Function

Creates an Error object that represents the Sys.InvalidOperationException exception.

Error.notImplemented Function

Creates an Error object that represents the Sys.NotImplementedException exception.

Error.parameterCount Function

Creates an Error object that represents the Sys.ParameterCountException exception.

Error.popStackFrame Function

Updates the fileName and lineNumber properties of an Error instance to indicate where the error was thrown instead of where the error was created. Use this function if you are creating custom error types.

See Also

Reference

Error Type Extensions