Skip to content

Commit 4b7c996

Browse files
committed
chore: restore and deprecate MdError class
1 parent f3ee19e commit 4b7c996

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/lib/core/core.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ export {MdLineModule, MdLine, MdLineSetter} from './line/line';
8989
// Style
9090
export * from './style/index';
9191

92+
// Error
93+
export {MdError} from './errors/error';
94+
9295
// Misc
9396
export {ComponentType} from './overlay/generic-component-type';
9497

src/lib/core/errors/error.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// TODO(kara): Revisit why error messages are not being properly set.
2+
3+
/**
4+
* Wrapper around Error that sets the error message.
5+
* @docs-private
6+
* @deprecated
7+
*/
8+
export class MdError extends Error {
9+
constructor(value: string) {
10+
super();
11+
this.message = value;
12+
}
13+
}

0 commit comments

Comments
 (0)