@ThriftMethod( exception = { @ThriftException(id = 1, type = ExceptionA.class), @ThriftException(id = 2, type = ExceptionB.class) } ) public void annotatedExceptions() throws ExceptionA, ExceptionB;
@ThriftMethod(exception = { @ThriftException(type = ThriftCheckedException.class, id = 1) }) public void throwWrongThriftException() throws TException, ThriftCheckedException;
@ThriftMethod(exception = { @ThriftException(type = ThriftUncheckedException.class, id = 1) }) public void throwExpectedThriftUncheckedException() throws TException;
@ThriftMethod(exception = {@ThriftException(id = 1, type = ExceptionA.class)}) public void uninferrableException() throws ExceptionA, ExceptionB; }
@ThriftMethod(exception = { @ThriftException(type = ThriftCheckedSubclassableException.class, id = 1) }) public void throwSubclassOfSubclassableException() throws ThriftCheckedSubclassableException, TException;
@ThriftMethod(exception = { @ThriftException(type = ThriftCheckedException.class, id = 1) }) public void throwExpectedThriftCheckedException() throws ThriftCheckedException, TException;
@ThriftMethod(exception = { @ThriftException(type = ThriftCheckedSubclassableException.class, id = 1) }) public void throwSubclassableException() throws ThriftCheckedSubclassableException, TException;
/** * @see {@link net.gdface.sdk.FaceApi#detectCenterFace(byte[])} */ @ThriftMethod(value = "detectCenterFace" ,exception = { @ThriftException(type=net.gdface.image.decorator.ImageErrorException.class, id=1), @ThriftException(type=NotFaceDetectedException.class, id=2), @ThriftException(type=ServiceRuntimeException.class, id=3) }) public CodeInfo detectCenterFace(ByteBuffer imgData) throws net.gdface.image.decorator.ImageErrorException,NotFaceDetectedException,ServiceRuntimeException{ try{ return TypeTransformer.getInstance().to( delegate().detectCenterFace(TypeTransformer.getInstance().to( imgData, ByteBuffer.class, byte[].class)), net.gdface.sdk.CodeInfo.class, CodeInfo.class); } catch(net.gdface.image.ImageErrorException e){ throw new net.gdface.image.decorator.ImageErrorException(e); } catch(net.gdface.sdk.NotFaceDetectedException e){ throw new NotFaceDetectedException(e); } catch(RuntimeException e){ throw new ServiceRuntimeException(e); } } /**
/** * @see {@link net.gdface.facelog.IFaceLog#releasePersonToken(net.gdface.facelog.Token)} */ @ThriftMethod(value = "releasePersonToken" ,exception = { @ThriftException(type=ServiceSecurityException.class, id=1), @ThriftException(type=ServiceRuntimeException.class, id=2) }) public void releasePersonToken(Token token) throws ServiceSecurityException,ServiceRuntimeException{ try{ delegate().releasePersonToken(TypeTransformer.getInstance().to( token, Token.class, net.gdface.facelog.Token.class)); } catch(net.gdface.facelog.ServiceSecurityException e){ throw new ServiceSecurityException(e); } catch(ServiceRuntimeException e){ throw e; } catch(RuntimeException e){ throw new ServiceRuntimeException(e); } } /**
/** * @see {@link net.gdface.facelog.IFaceLog#releaseRootToken(net.gdface.facelog.Token)} */ @ThriftMethod(value = "releaseRootToken" ,exception = { @ThriftException(type=ServiceSecurityException.class, id=1), @ThriftException(type=ServiceRuntimeException.class, id=2) }) public void releaseRootToken(Token token) throws ServiceSecurityException,ServiceRuntimeException{ try{ delegate().releaseRootToken(TypeTransformer.getInstance().to( token, Token.class, net.gdface.facelog.Token.class)); } catch(net.gdface.facelog.ServiceSecurityException e){ throw new ServiceSecurityException(e); } catch(ServiceRuntimeException e){ throw e; } catch(RuntimeException e){ throw new ServiceRuntimeException(e); } } /**
/** * @see {@link net.gdface.facelog.IFaceLog#unregisterDevice(int,net.gdface.facelog.Token)} */ @ThriftMethod(value = "unregisterDevice" ,exception = { @ThriftException(type=ServiceSecurityException.class, id=1), @ThriftException(type=ServiceRuntimeException.class, id=2) }) public void unregisterDevice(int deviceId, Token token) throws ServiceSecurityException,ServiceRuntimeException{ try{ delegate().unregisterDevice(deviceId, TypeTransformer.getInstance().to( token, Token.class, net.gdface.facelog.Token.class)); } catch(net.gdface.facelog.ServiceSecurityException e){ throw new ServiceSecurityException(e); } catch(ServiceRuntimeException e){ throw e; } catch(RuntimeException e){ throw new ServiceRuntimeException(e); } } /**
/** * @see {@link net.gdface.facelog.IFaceLog#applyPersonToken(int,java.lang.String,boolean)} */ @ThriftMethod(value = "applyPersonToken" ,exception = { @ThriftException(type=ServiceSecurityException.class, id=1), @ThriftException(type=ServiceRuntimeException.class, id=2) }) public Token applyPersonToken(int personId, String password, boolean isMd5) throws ServiceSecurityException,ServiceRuntimeException{ try{ return TypeTransformer.getInstance().to( delegate().applyPersonToken(personId, password, isMd5), net.gdface.facelog.Token.class, Token.class); } catch(net.gdface.facelog.ServiceSecurityException e){ throw new ServiceSecurityException(e); } catch(ServiceRuntimeException e){ throw e; } catch(RuntimeException e){ throw new ServiceRuntimeException(e); } } /**
/** * @see {@link net.gdface.facelog.IFaceLog#offline(net.gdface.facelog.Token)} */ @ThriftMethod(value = "offline" ,exception = { @ThriftException(type=ServiceSecurityException.class, id=1), @ThriftException(type=ServiceRuntimeException.class, id=2) }) public void offline(Token token) throws ServiceSecurityException,ServiceRuntimeException{ try{ delegate().offline(TypeTransformer.getInstance().to( token, Token.class, net.gdface.facelog.Token.class)); } catch(net.gdface.facelog.ServiceSecurityException e){ throw new ServiceSecurityException(e); } catch(ServiceRuntimeException e){ throw e; } catch(RuntimeException e){ throw new ServiceRuntimeException(e); } } /**
/** * @see {@link net.gdface.facelog.IFaceLog#applyRootToken(java.lang.String,boolean)} */ @ThriftMethod(value = "applyRootToken" ,exception = { @ThriftException(type=ServiceSecurityException.class, id=1), @ThriftException(type=ServiceRuntimeException.class, id=2) }) public Token applyRootToken(String password, boolean isMd5) throws ServiceSecurityException,ServiceRuntimeException{ try{ return TypeTransformer.getInstance().to( delegate().applyRootToken(password, isMd5), net.gdface.facelog.Token.class, Token.class); } catch(net.gdface.facelog.ServiceSecurityException e){ throw new ServiceSecurityException(e); } catch(ServiceRuntimeException e){ throw e; } catch(RuntimeException e){ throw new ServiceRuntimeException(e); } } /**
@ThriftException(type=ServiceSecurityException.class, id=1), @ThriftException(type=ServiceRuntimeException.class, id=2) }) public boolean isValidPassword(String userId,
@ThriftException(type=net.gdface.image.decorator.ImageErrorException.class, id=1), @ThriftException(type=NotFaceDetectedException.class, id=2), @ThriftException(type=ServiceRuntimeException.class, id=3) }) public java.util.List<CodeInfo> detectAndGetCodeInfo(ByteBuffer imgData,
@ThriftException(type=net.gdface.image.decorator.ImageErrorException.class, id=1), @ThriftException(type=NotFaceDetectedException.class, id=2), @ThriftException(type=ServiceRuntimeException.class, id=3) }) public double compare2Face(ByteBuffer imgData1,
/** * @see {@link net.gdface.facelog.IFaceLog#registerDevice(net.gdface.facelog.db.DeviceBean)} */ @ThriftMethod(value = "registerDevice" ,exception = { @ThriftException(type=ServiceSecurityException.class, id=1), @ThriftException(type=ServiceRuntimeException.class, id=2) }) public DeviceBean registerDevice(DeviceBean newDevice) throws ServiceSecurityException,ServiceRuntimeException{ try{ return TypeTransformer.getInstance().to( delegate().registerDevice(TypeTransformer.getInstance().to( newDevice, DeviceBean.class, DeviceBean.class)), DeviceBean.class, DeviceBean.class); } catch(net.gdface.facelog.ServiceSecurityException e){ throw new ServiceSecurityException(e); } catch(ServiceRuntimeException e){ throw e; } catch(RuntimeException e){ throw new ServiceRuntimeException(e); } } /**
@ThriftException(type=net.gdface.image.decorator.ImageErrorException.class, id=1), @ThriftException(type=NotFaceDetectedException.class, id=2), @ThriftException(type=ServiceRuntimeException.class, id=3) }) public double detectAndCompare2Face(ByteBuffer imgData1,
@ThriftException(type=DuplicateRecordException.class, id=1), @ThriftException(type=ServiceRuntimeException.class, id=2) }) public void addLog(LogBean bean,