com.objectsql.exception.ORMSQLException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of object-sql Show documentation
Show all versions of object-sql Show documentation
Lightweight Object SQL Relational Mapping (OSRM)
package com.objectsql.exception;
import java.util.HashMap;
import java.util.Map;
/**
* 项目名称: object-sql
* 描述: Table
* 创建时间:2020/3/13 10:02
* 公司信息:objectsql
*
* @author huangyonghua, [email protected]
*/
public class ORMSQLException extends ORMException{
private Map params;
public Map getParams() {
return params;
}
public ORMSQLException(Exception exception, String msg, Object... args){
super(exception.getMessage() != null? (msg + ":" + exception.getMessage()):msg);
}
public ORMSQLException(Exception exception, String msg){
super(exception.getMessage() != null? (msg + ":" + exception.getMessage()):msg);
}
public ORMSQLException(String msg){
super(msg);
}
public ORMSQLException put(String key, Object value){
if(this.params == null){
this.params = new HashMap();
}
this.params.put(key, value);
return this;
}
}