import { IPSDELogic } from './ipsdelogic'; import { IPSDELogicParam } from './ipsdelogic-param'; import { IPSDEThrowExceptionLogic } from './ipsdethrow-exception-logic'; import { PSDELogicNodeImpl } from './psdelogic-node-impl'; export class PSDEThrowExceptionLogicImpl extends PSDELogicNodeImpl implements IPSDEThrowExceptionLogic { get errorCode(): number { return this.M.errorCode; } get errorInfo(): string { return this.M.errorInfo; } get exceptionObj(): string { return this.M.exceptionObj; } protected exceptionparam: IPSDELogicParam | null = null; getExceptionParam(): IPSDELogicParam | null { if (this.exceptionparam != null) return this.exceptionparam; const value = this.M.getExceptionParam; if (value == null) { return null; } const ipsdelogic = this.getParentPSModelObject('dataentity.logic.IPSDELogic') as IPSDELogic; if (ipsdelogic != null) { this.exceptionparam = ipsdelogic.findPSDELogicParam(value); } return this.exceptionparam; } get exceptionParam(): IPSDELogicParam | null { return this.getExceptionParam(); } getExceptionParamMust(): IPSDELogicParam { const value = this.getExceptionParam(); if (value == null) { throw new Error('未指定异常参数对象'); } return value; } get cls(): string { return 'PSDEThrowExceptionLogicImpl'; } instanceof(cls: string): boolean { if (cls == 'dataentity.logic.IPSDEThrowExceptionLogic') return true; return super.instanceof(cls); } }