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

io.odysz.semantics.x.ExchangeException Maven / Gradle / Ivy

There is a newer version: 1.5.3
Show newest version
package io.odysz.semantics.x;

import io.odysz.semantic.syn.Exchanging;
import io.odysz.semantic.syn.ExessionPersist;

@SuppressWarnings("serial")
public class ExchangeException extends SemanticException {

	protected Exchanging exstep;
	public ExessionPersist persist;

	public ExchangeException(Exchanging expecting, ExessionPersist xp, String format, Object... args) {
		super(format, args);
		this.exstep = expecting;
		this.persist = xp; 
	}

	public ExchangeException(int expect, ExessionPersist xp, String format, Object... args) {
		super(format, args);
		this.exstep = new Exchanging(Exchanging.mode_client);
		this.exstep.state = expect;
		this.persist = xp; 
	}

	public int requires() {
		return exstep.state;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy