Package lumis.portal.structure.sync
Class InvalidStructureVersionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- lumis.portal.structure.sync.InvalidStructureFileException
-
- 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
- Version:
- $Revision: 15055 $ $Date: 2012-11-29 18:48:37 -0200 (Thu, 29 Nov 2012) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvalidStructureVersionException
findInvalidStructureVersionException(Throwable t)
Search byInvalidStructureVersionException
instance onexception
cause recursively and returns it if found, otherwise returnsnull
.String
getExpectedVersion()
Returns the expected version.String
getStructureVersion()
Returns the current structure invalid version.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 byInvalidStructureVersionException
instance onexception
cause recursively and returns it if found, otherwise returnsnull
.- Parameters:
t
- the exception.- Returns:
- returns an
InvalidStructureVersionException
instance if found, otherwise returnsnull
. - Since:
- 7.0.0
-
-