eventstore.operations.ScavengeDatabaseInspection.scala Maven / Gradle / Ivy
The newest version!
package eventstore
package operations
import ScavengeError._
import Inspection.Decision._
private[eventstore] object ScavengeDatabaseInspection
extends ErrorInspection[ScavengeDatabaseCompleted, ScavengeError] {
def decision(error: ScavengeError) = {
val result = error match {
case InProgress => ScavengeInProgressException
case Failed(x) => new ScavengeFailedException(x.orNull)
}
Fail(result)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy