templates.thrift.client_thrifty.schema.service.runtime.exception.class.vm Maven / Gradle / Ivy
#parse("${include}/header.include.vm")
#parse("${include}/generic.include.vm")
#set ( $className ="ServiceRuntimeException")
$codewriter.setCurrentJavaFilename("$pkg", "${className}.java")
package $pkg;
import com.gitee.l0km.xthrift.base.exception.client.BaseServiceRuntimeException;
import static com.google.common.base.Preconditions.*;
/**
* 服务端抛出的 runtime 异常
* @author guyadong
*
*/
public class ServiceRuntimeException extends BaseServiceRuntimeException{
private static final long serialVersionUID = 1L;
ServiceRuntimeException(${schemainfo.toStubType($schemainfo.serviceRuntimeExceptionClass)} cause) {
super(checkNotNull(cause,"cause is null"));
type = cause.type;
message = cause.message;
causeClass = cause.causeClass;
causeFields = cause.causeFields;
serviceStackTraceMessage = cause.serviceStackTraceMessage;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy