getl.exception.AbortDsl.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of getl Show documentation
Show all versions of getl Show documentation
GETL - based package in Groovy, which automates the work of loading and transforming data
package getl.exception
import groovy.transform.InheritConstructors
/**
* Generated when calling to stop DSL code execution by method abortWithError
*/
class AbortDsl extends Exception {
AbortDsl() {
super()
}
AbortDsl(Integer typeCode, Integer exitCode, String message) {
super(message)
this.typeCode = typeCode
this.exitCode = exitCode
}
AbortDsl(Integer typeCode, Integer exitCode) {
super()
this.typeCode = typeCode
this.exitCode = exitCode
}
AbortDsl(Integer typeCode, String message) {
super(message)
this.typeCode = typeCode
}
AbortDsl(Integer typeCode) {
super()
this.typeCode = typeCode
}
AbortDsl(String message) {
super(message)
this.typeCode = 0
this.exitCode = -1
}
/** Stop code execution of the current class */
static public final Integer STOP_CLASS = 1
/**
* Stop execution of current application code
*/
static public final Integer STOP_APP = 2
/** Type code */
private Integer typeCode
/** Type code */
Integer getTypeCode() { typeCode }
/** Exit code */
private Integer exitCode
/** Exit code */
Integer getExitCode() { exitCode }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy