MigrationException

class MigrationException(val reason: MigrationExceptionReason, val details: String? = null, cause: Throwable? = null) : OctaviusException

Exception thrown when a migration run cannot go on.

It carries no sqlState: where the server said something - a lock wait that ran out, a statement of a migration it refused - its exception is the cause. Where the migrator has no opinion - the history table failing to be read, a connection dying mid-run - the driver's own exception comes through instead.

Parameters

cause

The failure underneath, where this one is standing in front of another.

Constructors

Link copied to clipboard
constructor(reason: MigrationExceptionReason, details: String? = null, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

What is actually wrong, naming the file, class or version it is wrong about.

Link copied to clipboard
open val message: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

What kind of problem this is, for a log line to be keyed on.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun getDetailedMessage(): String
Link copied to clipboard
open override fun toString(): String