lumis.portal.structure.sync
Class InvalidStructureVersionException

Package class diagram package InvalidStructureVersionException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by lumis.portal.structure.sync.InvalidStructureFileException
              extended by lumis.portal.structure.sync.InvalidStructureVersionException
All Implemented Interfaces:
Serializable

public class InvalidStructureVersionException
extends InvalidStructureFileException

Exception thrown when a structure file is out of dated.

Since:
7.0.0
See Also:
Serialized Form

Constructor Summary
InvalidStructureVersionException(String currentVersion, String expectedVersion)
          Constructs a new exception with the specified detail message and cause.
InvalidStructureVersionException(String currentVersion, String expectedVersion, Throwable cause)
          Constructs a new exception with the specified detail message and cause.
 
Method Summary
static InvalidStructureVersionException findInvalidStructureVersionException(Throwable t)
          Search by InvalidStructureVersionException instance on exception cause recursively and returns it if found, otherwise returns null.
 String getExpectedVersion()
          Returns the expected version.
 String getStructureVersion()
          Returns the current structure invalid version.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

InvalidStructureVersionException

public InvalidStructureVersionException(String currentVersion,
                                        String expectedVersion)
Constructs a new exception with the specified detail message and cause.

Parameters:
currentVersion - the current version.
expectedVersion - the expected version.
Since:
7.0.0

InvalidStructureVersionException

public InvalidStructureVersionException(String currentVersion,
                                        String expectedVersion,
                                        Throwable cause)
Constructs a new exception with the specified detail message and cause.

Parameters:
currentVersion - the current version.
expectedVersion - the expected version.
cause - the cause.
Since:
7.0.0
Method Detail

getStructureVersion

public String getStructureVersion()
Returns the current structure invalid version.

Returns:
the current structure invalid version.
Since:
7.0.0

getExpectedVersion

public String getExpectedVersion()
Returns the expected version.

Returns:
the expected version.
Since:
7.0.0

findInvalidStructureVersionException

public static InvalidStructureVersionException findInvalidStructureVersionException(Throwable t)
Search by InvalidStructureVersionException instance on exception cause recursively and returns it if found, otherwise returns null.

Parameters:
t - the exception.
Returns:
returns an InvalidStructureVersionException instance if found, otherwise returns null.
Since:
7.0.0


Lumisportal  7.0.0.121130 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.