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

org.yamcs.sle.SleException Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package org.yamcs.sle;

import com.beanit.jasn1.ber.types.BerType;

/**
 * Generic exception thrown from the jsle classes.
 * 
 * They can carry a asn.1 message as received from the peer.
 * 
 * @author nm
 *
 */
public class SleException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    BerType data;
    public SleException(String message, BerType data) {
        super(message);
        this.data = data;
    }
    public SleException(String message) {
        super(message);
    }
    
    public String toString() {
        return getMessage() + (data!=null?": "+data.toString():""); 
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy