templates.thrift.client.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.getType();
message = cause.getMessage();
causeClass = cause.getCauseClass();
causeFields = cause.getCauseFields();
serviceStackTraceMessage = cause.getServiceStackTraceMessage();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy