---
title: "udf直接抛异常，强制中断映射."
author: "ceasarje"
date: "2015-11-30T20:42:44Z"
tags: []
categories: ["编程语言"]
slug: "udf"
draft: true
lastmod: "2015-11-30T20:42:44Z"
id: 2260655
url: "https://ceasarje.iteye.com/blog/2260655"
---

```java

if("123".equals(var1)){
try{

}catch(Exception e){

}finally{
	throw new RuntimeException("=====Mapping stopped due to NUM field value is 123.");
}
}else{
	return var1;
}
```