microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
3677173c6cd3c9a261a8ee5b0db12ffd25ee49a6

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/common/nestedError.ts

11lines · modeblame

10873e11digeff10 years ago1export class NestedError extends Error {
2private innerError: Error | any; // Normally this should be an error, but we support any value
3
4constructor(message: string, innerError: any) {
5super(message);
6this.innerError = innerError;
7this.name = innerError.name;
8const innerMessage = innerError.message;
9this.message = innerMessage ? `${message}: ${innerMessage}` : message;
10}
11}