Search
Preparing search index...
The search index is not available
@alterior/common
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
ArgumentError
Class ArgumentError<ValueT>
Type parameters
ValueT
Hierarchy
SystemError
ArgumentError
ArgumentNullError
ArgumentOutOfRangeError
Index
Constructors
constructor
Properties
serializer
Accessors
argument
Name
inner
Error
message
value
Methods
asJSON
with
Value
setJSONSerializer
Constructors
constructor
new
Argument
Error
(
argumentName
:
string
, message
?:
string
)
:
ArgumentError
Parameters
argumentName:
string
Optional
message:
string
Returns
ArgumentError
Properties
Static
serializer
serializer
:
(
instance
:
any
)
=>
any
Type declaration
(
instance
:
any
)
:
any
Parameters
instance:
any
Returns
any
Accessors
argument
Name
get
argumentName
(
)
:
string
The name of the argument
Returns
string
inner
Error
get
innerError
(
)
:
BaseError
Returns
BaseError
message
get
message
(
)
:
string
Returns
string
value
get
value
(
)
:
ValueT
The invalid value passed for the given argument
Returns
ValueT
Methods
asJSON
asJSON
(
)
:
any
Returns
any
with
Value
with
Value
(
value
:
ValueT
)
:
this
Parameters
value:
ValueT
Returns
this
Static
setJSONSerializer
setJSONSerializer
(
serializer
:
(
instance
:
any
)
=>
any
)
:
void
Parameters
serializer:
(
instance
:
any
)
=>
any
(
instance
:
any
)
:
any
Parameters
instance:
any
Returns
any
Returns
void
Globals
Argument
Error
constructor
serializer
argument
Name
inner
Error
message
value
asJSON
with
Value
setJSONSerializer
Generated using
TypeDoc
The name of the argument