
org.umlg.java.metamodel.utilities.InvariantError Maven / Gradle / Ivy
/*
* File generated by Grasland Grammar Generator on Dec 23, 2006 7:15:47 PM
*/
package org.umlg.java.metamodel.utilities;
/** Class ...
*/
public class InvariantError {
private Object instance = null;
private String message = "";
/** Constructor for InvariantError
*
* @param instance
* @param message
*/
public InvariantError(Object instance, String message) {
this.message = message;
this.instance = instance;
}
/** Returns the reason why this error has occurred.
*/
public String getMessage() {
return message;
}
/** Set the reason why this error has occurred.
*
* @param string
*/
public void setMessage(String string) {
message = string;
}
/** Returns the instance in which this error has occurred.
*/
public Object getInstance() {
return instance;
}
/** Sets the instance in which this error has occurred.
*
* @param object
*/
public void setInstance(Object object) {
instance = object;
}
/** Returns a printable version of this error.
*/
public String toString() {
return getMessage();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy