All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.common.exception.ConnectionException Maven / Gradle / Ivy

package org.bidib.wizard.common.exception;

public class ConnectionException extends RuntimeException implements UriAware {

    private static final long serialVersionUID = 1L;

    private String uri;

    private String connectionId;

    private String msgKey;

    public ConnectionException(String message) {
        super(message);
    }

    public ConnectionException(String message, String connectionId, String msgKey, String uri) {
        super(message);
        this.uri = uri;
        this.setMsgKey(msgKey);
        this.connectionId = connectionId;
    }

    public ConnectionException(String message, Throwable ex) {
        super(message, ex);
    }

    /**
     * @return the uri
     */
    @Override
    public String getUri() {
        return uri;
    }

    /**
     * @return the connectionId
     */
    public String getConnectionId() {
        return connectionId;
    }

    /**
     * @param connectionId
     *            the connectionId to set
     */
    public void setConnectionId(String connectionId) {
        this.connectionId = connectionId;
    }

    /**
     * @return the msgKey
     */
    public String getMsgKey() {
        return msgKey;
    }

    /**
     * @param msgKey
     *            the msgKey to set
     */
    public void setMsgKey(String msgKey) {
        this.msgKey = msgKey;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy