@v4fire/core
Version:
V4Fire core library
32 lines (28 loc) • 582 B
text/typescript
/*!
* V4Fire Core
* https://github.com/V4Fire/Core
*
* Released under the MIT license
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/
/**
* Recurrent structure that represents detailed error information
*/
export interface ErrorInfo {
/**
* General info about an error.
* Using only for cause errors and not for the root one.
*/
error?: {
name: string;
message: string;
};
/**
* Error's details that could be extracted from it via error details extractors
*/
details?: unknown;
/**
* Information of a caused error
*/
cause?: ErrorInfo;
}