UNPKG
typemoq
Version:
latest (2.1.0)
2.1.0
2.0.1
2.0.0
1.8.0
1.7.0
1.6.0
1.5.0
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.1
1.2.0
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
0.3.3
0.3.2
0.3.1
0.2.0
0.1.1
0.1.0
0.0.6
0.0.5
0.0.4
A simple mocking library for TypeScript
github.com/florinn/typemoq
florinn/typemoq
typemoq
/
src
/
Error
/
Exception.ts
12 lines
(10 loc)
•
336 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
class
Exception
extends
Error
{
constructor
(
public
name
:
string
,
message
:
string
) {
super
(message);
Object
.
setPrototypeOf
(
this
,
Exception
.
prototype
); }
toString
():
string
{
let
errMsg =
this
.
message
?
`
${
this
.name}
-
${
this
.message}
`
:
this
.
name
;
return
errMsg; } }