com.izforge.izpack.util.os
Class WrappedNativeLibException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.izforge.izpack.util.os.WrappedNativeLibException
All Implemented Interfaces:
java.io.Serializable

public class WrappedNativeLibException
extends java.lang.Exception

This class allows it to define error messages for NativeLibException s in the IzPack locale files. The getMessage methode searches in the current langpack for entries which are corresponding to that one which are received from native part. If the langpack do not contain the entry, the resource boundle is used.

Author:
Klaus Bartz
See Also:
Serialized Form

Field Summary
protected static LocaleDatabase langpack
          The packs locale database.
private static long serialVersionUID
           
 
Constructor Summary
WrappedNativeLibException()
          Default constructor.
WrappedNativeLibException(java.lang.String message)
           
WrappedNativeLibException(java.lang.String message, java.lang.Throwable cause)
           
WrappedNativeLibException(java.lang.Throwable cause)
           
 
Method Summary
static LocaleDatabase getLangpack()
          Returns the langpack.
 java.lang.String getMessage()
           
static void setLangpack(LocaleDatabase langpack)
          Sets the langpack to the given locale database.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

langpack

protected static LocaleDatabase langpack
The packs locale database.

Constructor Detail

WrappedNativeLibException

public WrappedNativeLibException()
Default constructor.


WrappedNativeLibException

public WrappedNativeLibException(java.lang.String message)
Parameters:
message -

WrappedNativeLibException

public WrappedNativeLibException(java.lang.Throwable cause)
Parameters:
cause -

WrappedNativeLibException

public WrappedNativeLibException(java.lang.String message,
                                 java.lang.Throwable cause)
Parameters:
message -
cause -
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getLangpack

public static LocaleDatabase getLangpack()
Returns the langpack.

Returns:
Returns the langpack.

setLangpack

public static void setLangpack(LocaleDatabase langpack)
Sets the langpack to the given locale database.

Parameters:
langpack - the langpack to set.