@douglasneuroinformatics/libjs
Preparing search index...
ExceptionBuilder
Class ExceptionBuilder<TParams, TOptions, TStaticMethods>
Type Parameters
TParams
extends
ExceptionParams
|
undefined
TOptions
extends
ExceptionOptions
TStaticMethods
extends
{
[
key
:
string
]:
unknown
}
Index
Constructors
constructor
Methods
build
extend
set
Options
Type
set
Params
set
Static
Method
Constructors
constructor
new
ExceptionBuilder
<
TParams
extends
ExceptionParams
<
any
>
|
undefined
,
TOptions
extends
ExceptionOptions
,
TStaticMethods
extends
{
[
key
:
string
]:
unknown
}
,
>
()
:
ExceptionBuilder
<
TParams
,
TOptions
,
TStaticMethods
>
Type Parameters
TParams
extends
ExceptionParams
<
any
>
|
undefined
TOptions
extends
ExceptionOptions
TStaticMethods
extends
{
[
key
:
string
]:
unknown
}
Returns
ExceptionBuilder
<
TParams
,
TOptions
,
TStaticMethods
>
Methods
build
build
()
:
[
TParams
]
extends
[
ExceptionParams
<
any
>
]
?
SingleKeyMap
<
TParams
[
"name"
]
,
ExceptionType
<
NonNullable
<
TParams
>
,
TOptions
,
TStaticMethods
>
,
>
:
never
Returns
[
TParams
]
extends
[
ExceptionParams
<
any
>
]
?
SingleKeyMap
<
TParams
[
"name"
]
,
ExceptionType
<
NonNullable
<
TParams
>
,
TOptions
,
TStaticMethods
>
,
>
:
never
extend
extend
(
constructor
:
new
(
...
args
:
[
message
?:
string
,
options
?:
ExceptionOptions
]
,
)
=>
BaseException
,
)
:
this
Parameters
constructor
:
new
(
...
args
:
[
message
?:
string
,
options
?:
ExceptionOptions
]
)
=>
BaseException
Returns
this
set
Options
Type
setOptionsType
<
TUpdatedOptions
extends
ExceptionOptions
>
()
:
ExceptionBuilder
<
TParams
,
TUpdatedOptions
,
TStaticMethods
,
>
Type Parameters
TUpdatedOptions
extends
ExceptionOptions
Returns
ExceptionBuilder
<
TParams
,
TUpdatedOptions
,
TStaticMethods
>
set
Params
setParams
<
const
TUpdatedParams
extends
ExceptionParams
<
TOptions
[
"details"
]
>
>
(
params
:
TUpdatedParams
,
)
:
ExceptionBuilder
<
TUpdatedParams
,
TOptions
,
TStaticMethods
>
Type Parameters
const
TUpdatedParams
extends
ExceptionParams
<
TOptions
[
"details"
]
>
Parameters
params
:
TUpdatedParams
Returns
ExceptionBuilder
<
TUpdatedParams
,
TOptions
,
TStaticMethods
>
set
Static
Method
setStaticMethod
<
TName
extends
string
,
TMethod
extends
(
this
:
ExceptionConstructor
<
NonNullable
<
TParams
>
,
TOptions
>
,
...
args
:
any
[]
,
)
=>
any
,
>
(
name
:
TName
,
method
:
TMethod
,
)
:
ExceptionBuilder
<
TParams
,
TOptions
,
TStaticMethods
&
{
[
K
in
string
]
:
TMethod
}
,
>
Type Parameters
TName
extends
string
TMethod
extends
(
this
:
ExceptionConstructor
<
NonNullable
<
TParams
>
,
TOptions
>
,
...
args
:
any
[]
,
)
=>
any
Parameters
name
:
TName
method
:
TMethod
Returns
ExceptionBuilder
<
TParams
,
TOptions
,
TStaticMethods
&
{
[
K
in
string
]
:
TMethod
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
build
extend
set
Options
Type
set
Params
set
Static
Method
@douglasneuroinformatics/libjs
Loading...