@Override public BType getErrorType(BType reasonType, BType detailsType) { if (reasonType == BTypes.typeString && detailsType == BTypes.typeMap) { return BTypes.typeError; } return new BErrorType(reasonType, detailsType); } }
@Override public BType getErrorType(BType reasonType, BType detailsType) { if (reasonType == BTypes.typeString && detailsType == BTypes.typeMap) { return BTypes.typeError; } return new BErrorType(reasonType, detailsType); } }