Package org.more

Examples of org.more.UndefinedException


    public Object getReturnData(SerializeFactory serializeFactory) throws Throwable {
        String codeName = this.getSerializeType();
        Decoder decoder = serializeFactory.getDecoder(codeName);
        //
        if (decoder == null && this.returnData != null)
            throw new UndefinedException("Undefined ‘" + codeName + "’ serialize decoder ");
        //
        return decoder.decode(this.returnData);
    }
View Full Code Here


    private AtomicBoolean             inited           = new AtomicBoolean(false);
    //
    protected MappingDefine(String bindID, Method targetMethod, CallStrategyFactory strategyFactory) {
        MappingTo pathAnno = targetMethod.getAnnotation(MappingTo.class);
        if (pathAnno == null)
            throw new UndefinedException("is not a valid Mapping Service.");
        String servicePath = pathAnno.value();
        if (StringUtils.isBlank(servicePath))
            throw new NullPointerException("Service path is empty.");
        if (!servicePath.matches("/.+"))
            throw new IllegalStateException("Service path format error");
View Full Code Here

TOP

Related Classes of org.more.UndefinedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.