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

getl.exception.AbortDsl.groovy Maven / Gradle / Ivy

Go to download

GETL - based package in Groovy, which automates the work of loading and transforming data

There is a newer version: 4.18.9
Show newest version
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