com.l2fprod.gui.plaf.skin
Class IncorrectVersionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.l2fprod.gui.plaf.skin.IncorrectVersionException
All Implemented Interfaces:
java.io.Serializable

public final class IncorrectVersionException
extends java.lang.Exception

Thrown when a Theme Pack requires a SkinLF version greater than the current.

Version:
$Revision: 1.4 $, $Date: 2005/11/19 09:25:05 $
Author:
$Author: l2fprod $
See Also:
Serialized Form

Constructor Summary
IncorrectVersionException(java.lang.String required, java.lang.String current)
          Constructor for the IncorrectVersionException object
 
Method Summary
static void checkRequiredVersion(java.lang.String current, java.lang.String required)
          Check if the current version is bigger or equals to the required 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

IncorrectVersionException

public IncorrectVersionException(java.lang.String required,
                                 java.lang.String current)
Constructor for the IncorrectVersionException object

Parameters:
required - Description of Parameter
current - Description of Parameter
Method Detail

checkRequiredVersion

public static void checkRequiredVersion(java.lang.String current,
                                        java.lang.String required)
                                 throws IncorrectVersionException
Check if the current version is bigger or equals to the required version. If this is not the case an IncorrectVersionException is thrown.

Parameters:
current - Description of Parameter
required - Description of Parameter
Throws:
IncorrectVersionException - if the current version does not fit