Build code introspection service (#7760)
Starting to use ts-morph to retrieve function parameters
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
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',
|
||||
}
|
||||
Reference in New Issue
Block a user