Exception class - Extension of the native Error with a previous implementation
class Exception extends Error {
constructor( message, previous ) {}
previous : *
previousToStack : boolean
previousPrefix : string
addPreviousToStack() {}
}
For more details check the Exception source file.