|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
lumis.portal.structure.sync.InvalidStructureFileException
lumis.portal.structure.sync.InvalidStructureVersionException
public class InvalidStructureVersionException
Exception thrown when a structure file is out of dated.
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 |
---|
public InvalidStructureVersionException(String currentVersion, String expectedVersion)
currentVersion
- the current version.expectedVersion
- the expected version.public InvalidStructureVersionException(String currentVersion, String expectedVersion, Throwable cause)
currentVersion
- the current version.expectedVersion
- the expected version.cause
- the cause.Method Detail |
---|
public String getStructureVersion()
public String getExpectedVersion()
public static InvalidStructureVersionException findInvalidStructureVersionException(Throwable t)
InvalidStructureVersionException
instance on exception
cause recursively and returns it if found,
otherwise returns null
.
t
- the exception.
InvalidStructureVersionException
instance if found,
otherwise returns null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |