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

org.yamcs.alarms.AlarmSequenceException Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
package org.yamcs.alarms;

import org.yamcs.YamcsException;

/**
 * Used by AlarmServer to indicate that a specified alarm instance does not have the expected sequence number.
 */
@SuppressWarnings("serial")
public class AlarmSequenceException extends YamcsException {

    public AlarmSequenceException(int expectedId, int actualId) {
        super(String.format("Alarm sequence number does not match active alarm."
                + " Was: %s, expected %s", actualId, expectedId));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy