Skip to content

Commit 6378c48

Browse files
committed
The member 'managerUID' can now be accessed from outside of the error class 'ManagerNotFound'
1 parent 1daac87 commit 6378c48

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/Errors.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export declare class ManagerNotFound extends Error {
2+
managerUID: string;
23
constructor(managerUID: string);
34
}
45
export declare class HTTPError extends Error {

lib/Errors.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
1313
var ManagerNotFound = (function (_super) {
1414
__extends(ManagerNotFound, _super);
1515
function ManagerNotFound(managerUID) {
16-
return _super.call(this, 'Cannot find the manager : ' + managerUID) || this;
16+
var _this = _super.call(this, 'Cannot find the manager : ' + managerUID) || this;
17+
_this.managerUID = managerUID;
18+
return _this;
1719
}
1820
return ManagerNotFound;
1921
}(Error));

src/Errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
export class ManagerNotFound extends Error
33
{
4-
constructor(managerUID : string)
4+
constructor(public managerUID : string)
55
{
66
super('Cannot find the manager : ' + managerUID);
77
}

0 commit comments

Comments
 (0)