net.nemerosa.ontrack.model.exceptions.ValidationRunDataInputException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
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