com.googlecode.flyway.core.migration
Class MigrationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.googlecode.flyway.core.exception.FlywayException
                  extended by com.googlecode.flyway.core.migration.MigrationException
All Implemented Interfaces:
java.io.Serializable

public class MigrationException
extends FlywayException

Exception indicating that migration failed.

See Also:
Serialized Form

Constructor Summary
MigrationException(SchemaVersion version, boolean rollback)
          Creates a new MigrationException for this version.
 
Method Summary
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MigrationException

public MigrationException(SchemaVersion version,
                          boolean rollback)
Creates a new MigrationException for this version.

Parameters:
version - The version of the migration that failed.
rollback - Flag indicating whether a rollback was performed or not.
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable


Copyright © 2011. All Rights Reserved.