![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.ErrorStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml;
public class ErrorStatus {
private boolean noData;
private boolean hasErrors;
private boolean hasOk;
private ErrorStatus() {
this.noData = true;
}
public static ErrorStatus init() {
return new ErrorStatus();
}
// public synchronized void goNoData() {
// this.noData = true;
// }
public synchronized void goWithError() {
this.hasErrors = true;
this.noData = false;
}
public synchronized void goOk() {
this.hasOk = true;
this.noData = false;
}
public synchronized boolean hasError() {
return hasErrors;
}
public synchronized boolean isNoData() {
return noData;
}
public int getExitCode() {
if (isNoData())
return 100;
if (hasErrors)
return 200;
return 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy