Files
fantaibao-qlexpress4/src/main/java/com/alibaba/qlexpress4/exception/UserDefineException.java
small-red-hat 2dfed7464e
Some checks failed
Reduce Adoc / reduce (push) Failing after 57s
Java Unit Test with Maven / test (push) Failing after 1m42s
first
2025-12-29 13:59:13 +08:00

28 lines
622 B
Java

package com.alibaba.qlexpress4.exception;
/**
* user define error message for custom function/operator
* Author: DQinYuan
*/
public class UserDefineException extends Exception {
public enum ExceptionType {
INVALID_ARGUMENT, BIZ_EXCEPTION
};
private final ExceptionType type;
public UserDefineException(String message) {
this(ExceptionType.BIZ_EXCEPTION, message);
}
public UserDefineException(ExceptionType type, String message) {
super(message);
this.type = type;
}
public ExceptionType getType() {
return type;
}
}