UNPKG
morris
Version:
latest (0.1.4)
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Nine Men's Morris implementation in Node.js
morris
/
Exception.js
14 lines
(12 loc)
•
302 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module.exports =
class
Exception
{
constructor
(message, code, type, properties = {}) {
this
.message = message;
this
.errorCode = code;
this
.type = type;
for
(
var
key
in
properties) {
if
(properties.hasOwnProperty(key)) {
this
[key] = properties[key]; } } } }