13 lines
379 B
TypeScript
13 lines
379 B
TypeScript
import { CustomException } from 'src/utils/custom-exception';
|
|
|
|
export class CodeIntrospectionException extends CustomException {
|
|
code: CodeIntrospectionExceptionCode;
|
|
constructor(message: string, code: CodeIntrospectionExceptionCode) {
|
|
super(message, code);
|
|
}
|
|
}
|
|
|
|
export enum CodeIntrospectionExceptionCode {
|
|
ONLY_ONE_FUNCTION_ALLOWED = 'ONLY_ONE_FUNCTION_ALLOWED',
|
|
}
|