UNPKG
create-nextjs-storybook
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.2
0.0.1
Install embedded Storybook route into a NextJS project
create-nextjs-storybook
/
src
/
cli
/
HandledError.ts
10 lines
(7 loc)
•
285 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
export
class
HandledError
extends
Error
{
public
handled =
true
;
constructor
(
messageOrError
:
string
|
Error
) {
super
(
typeof
messageOrError ===
'string'
? messageOrError : messageOrError.
message
);
if
(
typeof
messageOrError !==
'string'
)
this
.
cause
= messageOrError; } }