@voxel-3d/docs
Preparing search index...
IErrorSystem
Interface IErrorSystem
ErrorSystem 클래스 interface
interface
IErrorSystem
{
report
(
options
:
Voxel3DErrorOptions
)
:
ErrorEntry
;
reportError
(
error
:
Error
,
code
?:
ErrorCode
,
context
?:
Record
<
string
,
unknown
>
,
)
:
ErrorEntry
;
wrap
<
T
>
(
fn
:
()
=>
T
,
code
?:
ErrorCode
,
context
?:
Record
<
string
,
unknown
>
,
)
:
T
|
undefined
;
wrapAsync
<
T
>
(
fn
:
()
=>
Promise
<
T
>
,
code
?:
ErrorCode
,
context
?:
Record
<
string
,
unknown
>
,
)
:
Promise
<
T
|
undefined
>
;
subscribe
(
handler
:
ErrorHandler
)
:
()
=>
void
;
unsubscribe
(
handler
:
ErrorHandler
)
:
void
;
getHistory
(
filter
?:
ErrorHistoryFilter
)
:
ErrorEntry
[]
;
clearHistory
()
:
void
;
getStats
()
:
ErrorStats
;
resetStats
()
:
void
;
dispose
()
:
void
;
}
Implemented by
ErrorSystem
Index
Methods
report
report
Error
wrap
wrap
Async
subscribe
unsubscribe
get
History
clear
History
get
Stats
reset
Stats
dispose
Methods
report
report
(
options
:
Voxel3DErrorOptions
)
:
ErrorEntry
Parameters
options
:
Voxel3DErrorOptions
Returns
ErrorEntry
report
Error
reportError
(
error
:
Error
,
code
?:
ErrorCode
,
context
?:
Record
<
string
,
unknown
>
,
)
:
ErrorEntry
Parameters
error
:
Error
Optional
code
:
ErrorCode
Optional
context
:
Record
<
string
,
unknown
>
Returns
ErrorEntry
wrap
wrap
<
T
>
(
fn
:
()
=>
T
,
code
?:
ErrorCode
,
context
?:
Record
<
string
,
unknown
>
,
)
:
T
|
undefined
Type Parameters
T
Parameters
fn
:
()
=>
T
Optional
code
:
ErrorCode
Optional
context
:
Record
<
string
,
unknown
>
Returns
T
|
undefined
wrap
Async
wrapAsync
<
T
>
(
fn
:
()
=>
Promise
<
T
>
,
code
?:
ErrorCode
,
context
?:
Record
<
string
,
unknown
>
,
)
:
Promise
<
T
|
undefined
>
Type Parameters
T
Parameters
fn
:
()
=>
Promise
<
T
>
Optional
code
:
ErrorCode
Optional
context
:
Record
<
string
,
unknown
>
Returns
Promise
<
T
|
undefined
>
subscribe
subscribe
(
handler
:
ErrorHandler
)
:
()
=>
void
Parameters
handler
:
ErrorHandler
Returns
()
=>
void
unsubscribe
unsubscribe
(
handler
:
ErrorHandler
)
:
void
Parameters
handler
:
ErrorHandler
Returns
void
get
History
getHistory
(
filter
?:
ErrorHistoryFilter
)
:
ErrorEntry
[]
Parameters
Optional
filter
:
ErrorHistoryFilter
Returns
ErrorEntry
[]
clear
History
clearHistory
()
:
void
Returns
void
get
Stats
getStats
()
:
ErrorStats
Returns
ErrorStats
reset
Stats
resetStats
()
:
void
Returns
void
dispose
dispose
()
:
void
Returns
void
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
report
report
Error
wrap
wrap
Async
subscribe
unsubscribe
get
History
clear
History
get
Stats
reset
Stats
dispose
@voxel-3d/docs
Loading...
ErrorSystem 클래스 interface