UNPKG

@specs-feup/lara

Version:

A js port of the popular framework for building source-to-source compilers

15 lines (13 loc) 417 B
export default interface JavaError { cause: { getMessage: () => string; getStackTrace: () => string[]; getMessageP: () => string; getStackTraceP: () => string[]; }; } // eslint-disable-next-line @typescript-eslint/no-explicit-any export function isJavaError(obj: any): obj is JavaError { // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access return obj.cause != undefined; }