zisko.multicastor.program.lang
Class InvalidLanguageFileException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by zisko.multicastor.program.lang.InvalidLanguageFileException
All Implemented Interfaces:
java.io.Serializable

public class InvalidLanguageFileException
extends java.lang.Exception

This exception is thrown if a language file is invalid In the most cases it does not contain all the required key value pairs that are needed.

See Also:
Serialized Form

Constructor Summary
InvalidLanguageFileException(int errorIndex, java.lang.String errorKey, java.lang.String[] keys)
          Creates a new Invalid LanguageFileException
 
Method Summary
 int getErrorIndex()
          Returns the index of the first missing key
 java.lang.String getErrorKey()
          Returns the name of the first missing key
 java.lang.String[] getKeys()
          Returns the reference to the used key array for the validation
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidLanguageFileException

public InvalidLanguageFileException(int errorIndex,
                                    java.lang.String errorKey,
                                    java.lang.String[] keys)
Creates a new Invalid LanguageFileException

Parameters:
errorIndex - The first missing key value
errorKey - The index the first missing key
keys - the reference to the used key array for the validation
See Also:
LanguageManager.keys
Method Detail

getErrorKey

public java.lang.String getErrorKey()
Returns the name of the first missing key

Returns:
name of the first missing key

getErrorIndex

public int getErrorIndex()
Returns the index of the first missing key

Returns:
index of the first missing key

getKeys

public java.lang.String[] getKeys()
Returns the reference to the used key array for the validation

Returns:
reference to the used key array for the validation