feat(core): provide an error context when an exception happens in an error handler
This commit is contained in:
@ -5,6 +5,8 @@ import 'dart:math' as math;
|
||||
import 'dart:convert' as convert;
|
||||
import 'dart:async' show Future;
|
||||
|
||||
bool isDart = true;
|
||||
|
||||
String getTypeNameForDebugging(Type type) => type.toString();
|
||||
|
||||
class Math {
|
||||
|
@ -9,6 +9,8 @@ export function getTypeNameForDebugging(type: Type): string {
|
||||
return type['name'];
|
||||
}
|
||||
|
||||
export var isDart = false;
|
||||
|
||||
export class BaseException extends Error {
|
||||
stack;
|
||||
constructor(public message?: string, private _originalException?, private _originalStack?,
|
||||
|
Reference in New Issue
Block a user