UNPKG
@huunguyen312/flash-list
Version:
latest (1.4.3)
1.4.3
FlashList is a more performant FlatList replacement
shopify.github.io/flash-list/
Shopify/flash-list
@huunguyen312/flash-list
/
src
/
errors
/
CustomError.ts
11 lines
(10 loc)
•
245 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
default
class
CustomError
extends
Error
{
constructor
(
exception
:
Exception
) {
super
(
`
${exception.
type
}
:
${exception.message}
`
);
this
.
name
= exception.
type
; } }
export
interface
Exception
{
type
:
string
;
message
:
string
; }