MigrationException

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

Exception thrown when a migration run cannot go on.

Every one of these is raised before or instead of touching the database, or else after a failure has already been rolled back - which is the reason there is no sqlState on it. A statement the server refused arrives as the driver's own exception instead, unchanged, since the server said it better.

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

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