@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
19 lines (12 loc) • 466 B
text/typescript
import {BaseException} from './BaseException';
export const NOT_FOUND_EXCEPTION_NAME = 'com.enonic.xp.exception.NotFoundException';
export class NotFoundException extends BaseException {
constructor(message: string) {
super(message);
// Maintains proper stack trace for where our error was thrown (only available on V8)
if (Error.captureStackTrace) {
Error.captureStackTrace(this, NotFoundException);
}
this.name = NOT_FOUND_EXCEPTION_NAME;
}
}