org.eclipse.keyple.calypso.transaction.exception.CalypsoSamAnomalyException Maven / Gradle / Ivy
/* **************************************************************************************
* Copyright (c) 2020 Calypso Networks Association https://www.calypsonet-asso.org/
*
* See the NOTICE file(s) distributed with this work for additional information
* regarding copyright ownership.
*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
************************************************************************************** */
package org.eclipse.keyple.calypso.transaction.exception;
import org.eclipse.keyple.calypso.command.sam.exception.CalypsoSamCommandException;
/**
* The exception {@code CalypsoSamAnomalyException} indicates an anomaly in the SAM.
* This can occur if the SAM is not Calypso compliant.
*/
public class CalypsoSamAnomalyException extends CalypsoPoTransactionException {
/**
* Encapsulates an unexpected {@link CalypsoSamCommandException} exception.
*
* @param message message to identify the exception context
* @param cause the cause
*/
public CalypsoSamAnomalyException(String message, CalypsoSamCommandException cause) {
super(message, cause);
}
/** @return the unexpected cause {@link CalypsoSamCommandException} */
@Override
public synchronized CalypsoSamCommandException getCause() {
return (CalypsoSamCommandException) super.getCause();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy