Methods of the Error Extension
Method Name Description
argument Creates an Error object based on the Sys.ArgumentException exception.
argumentNull Creates an Error object based on the Sys.ArgumentNullException
exception.
argumentOutOfRange Creates an Error object based on the Sys.ArgumentOutOfRangeException
exception.
argumentType Creates an Error object based on the Sys.ArgumentTypeException
exception.
argumentUndefined Creates an Error object based on the Sys.ArgumentUndefinedException
exception.
create Creates an Error object that can contain additional error information.
invalidOperation Creates an Error object based on the Sys.InvalidOperationException
exception.
notImplemented Creates an Error object based on the Sys.NotImplementedException
exception.
parameterCount Creates an Error object based on the Sys.ParameterCountException
exception.
popStackFrame Adds extra information to the fileName and lineNumber properties of an
Error instance regarding the source of the error. This is particularly
useful when creating custom errors.
Suppose you are writing some validation logic for a function and want to generate a
typed exception on the client for a missing parameter.
Pages:
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118