@quenk/preconditions
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Dual
Failure
constructor
left
right
value
context
message
explain
to
Error
Modified
Failure
Prim
Failure
Context
Contexts
Error
Templates
Explanations
Failure
Failures
Explanation
Type
Type parameters
A
B
Hierarchy
DualFailure
Implements
Failure
<
A
>
Index
Constructors
constructor
Properties
left
right
value
Accessors
context
message
Methods
explain
to
Error
Constructors
constructor
new
Dual
Failure
(
value
:
A
, left
:
Failure
<
A
>
, right
:
Failure
<
B
>
)
:
DualFailure
Parameters
value:
A
left:
Failure
<
A
>
right:
Failure
<
B
>
Returns
DualFailure
Properties
left
left
:
Failure
<
A
>
right
right
:
Failure
<
B
>
value
value
:
A
Accessors
context
get
context
(
)
:
Context
Returns
Context
message
get
message
(
)
:
string
Returns
string
Methods
explain
explain
(
templates
?:
ErrorTemplates
, ctx
?:
Context
)
:
Explanation
Parameters
Default value
templates:
ErrorTemplates
= {}
Default value
ctx:
Context
= {}
Returns
Explanation
to
Error
to
Error
(
templates
?:
ErrorTemplates
, context
?:
Context
)
:
Error
Parameters
Default value
templates:
ErrorTemplates
= {}
Default value
context:
Context
= {}
Returns
Error
Generated using
TypeDoc