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