noencoderexception.java

来自「中国移动定位引擎的客户端」· Java 代码 · 共 55 行

JAVA
55
字号
/**
*
* <p>Title: Smgp协议TLV结构解析</p>
* <p>Description:无编码异常处理</p>
* <p>Copyright: Copyright (c) 2007</p>
* <p>Company: 福富软件</p>
* @author chenxin
* @version 1.0 $Date 2007-07-03
*/
package ffcs.lbp.le.message.tlv;

/**
 * No encoder found for a Java type. An attempt was made to define a new tag
 * with a value type that the API does not have a known encoder for. The
 * application should define a new encoder and define the tag passing that
 * encoder to the
 * {@link ie.omk.smpp.message.tlv.Tag#defineTag(int, java.lang.Class, ie.omk.smpp.message.tlv.Encoder, int)}
 * method.
 * 
 * @author Oran Kelly
 * @version $Id: NoEncoderException.java 267 2006-03-09 16:37:31Z orank $
 */
public class NoEncoderException extends RuntimeException {
    static final long serialVersionUID = 6441311177365899332L;
    
    private final Class type;

    /**
     * Create a new NoEncoderException.
     * 
     * @param type
     *            The Java type that no encoder was found for.
     */
    public NoEncoderException(Class type) {
        this.type = type;
    }

    /**
     * Create a new NoEncoderException.
     * 
     * @param type
     *            The Java type that no encoder was found for.
     * @param msg
     *            The exception message.
     */
    public NoEncoderException(Class type, String msg) {
        super(msg);
        this.type = type;
    }
    
    public Class getType() {
        return type;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?