Skip to content

Commit fbfb59f

Browse files
committed
Change error messages
1 parent 735f409 commit fbfb59f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎JavaScript/3-file-storage.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ class Database {
77
constructor() {
88
const proto = Object.getPrototypeOf(this);
99
if (proto.constructor === Database) {
10-
throw new Error('abstract class should not be instanciated');
10+
throw new Error('Abstract class should not be instanciated');
1111
}
1212
}
1313

1414
select() {
15-
throw new Error('select(${}) method is not implemented');
15+
throw new Error('Method is not implemented');
1616
}
1717
}
1818

1919
class Cursor {
2020
constructor() {
2121
const proto = Object.getPrototypeOf(this);
2222
if (proto.constructor === Cursor) {
23-
throw new Error('abstract class should not be instanciated');
23+
throw new Error('Abstract class should not be instanciated');
2424
}
2525
this.current = 0;
2626
}
2727

2828
[Symbol.asyncIterator]() {
29-
throw new Error('iterator is not implemented');
29+
throw new Error('Method is not implemented');
3030
}
3131
}
3232

0 commit comments

Comments
 (0)