org.ragna.comet.exception.stream.validations

Type members

Classlikes

case class StreamErroredItemException(message: String, cause: Throwable) extends StreamValidationException

Custom exception thrown when a failure occurs while validating a Stream of items because an item parsing and/or validation raised an unhandled error

Custom exception thrown when a failure occurs while validating a Stream of items because an item parsing and/or validation raised an unhandled error

The underlying status will be ERRORED and no validation result will be attached

Companion:
object
Source:
StreamErroredItemException.scala
case class StreamInvalidItemException(message: String, cause: Throwable, reason: Option[Result]) extends StreamValidationException

Custom exception thrown when a failure occurs while validating a Stream of items because an item validation failed

Custom exception thrown when a failure occurs while validating a Stream of items because an item validation failed

The underlying status will be INVALID and the invalid validation result will be attached

Companion:
object
Source:
StreamInvalidItemException.scala
abstract class StreamValidationException(val message: String, val cause: Throwable, val status: ResultStatus, val reason: Option[Result]) extends Exception

Abstract class covering custom exceptions thrown when a failure occurs while validating a Stream of items

Abstract class covering custom exceptions thrown when a failure occurs while validating a Stream of items

Value parameters:
cause

Nested exception that caused the the validation to fail

message

Reason/explanation of why the exception occurred

reason

For invalid items, the validation report of the failing item that caused the exception

status

Status of the item that caused the exception

Companion:
object
Source:
StreamValidationException.scala