UNPKG
apim-developer-portal2
Version:
latest (2.0.4)
2.0.4
API management developer portal
apim-developer-portal2
/
src
/
errors
/
appError.ts
13 lines
(12 loc)
•
312 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
class
AppError
extends
Error
{
constructor
(
public
readonly
message
:
string
,
public
readonly
innerError
?:
Error
) {
super
();
Object
.
setPrototypeOf
(
this
,
AppError
.
prototype
); }
public
toString
():
string
{
return
`
${
this
.stack}
`
; } }