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

net.nemerosa.ontrack.model.exceptions.ValidationRunDataInputException.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.model.exceptions

import com.fasterxml.jackson.databind.JsonNode
import net.nemerosa.ontrack.json.JsonParseException
import net.nemerosa.ontrack.json.JsonUtils

open class ValidationRunDataInputException(pattern: String) : InputException(pattern)

class ValidationRunDataStatusRequiredBecauseNoDataTypeException : ValidationRunDataInputException(
        "Validation Run Status is required because the validation stamp has no data type."
)

class ValidationRunDataStatusRequiredBecauseNoDataException : ValidationRunDataInputException(
        "Validation Run Status is required because no data is provided."
)

class ValidationRunDataJSONInputException(ex: JsonParseException, data: JsonNode) : ValidationRunDataInputException(
        "Could not parse the JSON for the validation data: ${ex.message} for ${JsonUtils.toJSONString(data)}"
)

class ValidationRunDataFormatException(message: String) : ValidationRunDataInputException(message)

class ValidationRunDataMismatchException(
        actualId: String,
        expectedId: String
) : ValidationRunDataInputException(
        "Data associated with the validation run as different " +
                "type than the one associated with the validation stamp. " +
                "`$expectedId` is expected and `$actualId` was given."

)

class ValidationRunDataTypeNotFoundException(type: String) : ValidationRunDataInputException(
        "Cannot find any data type for ID `$type`"
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy