| java.lang.Object java.lang.Throwable java.lang.Exception com.coi.tools.os.win.NativeLibException
NativeLibException | public class NativeLibException extends Exception (Code) | | A exception class which will be used from the native part of system dependent classes to signal
exceptions. The native methods writes only symbolic error messages, the language dependant
mapping will be done in this class.
author: Klaus Bartz |
NativeLibException | public NativeLibException()(Code) | | The constructor.
|
NativeLibException | public NativeLibException(String message)(Code) | | Creates a NativeLibException with the given message.
Parameters: message - to be used |
NativeLibException | public NativeLibException(Throwable cause)(Code) | | Creates a NativeLibException with the given cause.
Parameters: cause - to be used |
NativeLibException | public NativeLibException(String message, Throwable cause)(Code) | | Creates a NativeLibException with the given message and cause.
Parameters: message - message to be used Parameters: cause - cause to be used |
NativeLibException | public NativeLibException(int libErr, int osErr, String libString, String osString)(Code) | | Creates a NativeLibException with the given values.
Parameters: libErr - identifier of the internal handled error Parameters: osErr - system error number Parameters: libString - message for the internal handled error Parameters: osString - system error message |
addArgument | public void addArgument(String arg)(Code) | | Adds a string to the internal argument list.
Parameters: arg - string to be added to the internal argument list |
addResourceBundle | public static void addResourceBundle(String bundlePath)(Code) | | Adds a resource bundle which contains localized error messages. The bundlePath should contain
a string with which the bundle is loadable with ResourceBundle.getBundle, may be the full
class path to a ListResourceBundle. The localize is done by getBundle, therefore the path
should not contain the locale substring. At a call to getMessage the bundle is searched with
the libErrString as key. If it exist, the value of it is used by getMessage, else the
libErrString self.
Parameters: bundlePath - path of bundle without locale |
getArguments | public ArrayList<String> getArguments()(Code) | | Returns the internal argument list.
the internal argument list |
getLibErr | public int getLibErr()(Code) | | Returns the number of the internal handled error.
the number of the internal handled error |
getLibMessage | public String getLibMessage()(Code) | | Returns the message of the internal handled error.
the messager of the internal handled error |
getLocalizedLibMessage | public String getLocalizedLibMessage()(Code) | | Returns the localized message of the internal handled error.
the localized message of the internal handled error |
getOsErr | public int getOsErr()(Code) | | Returns the number of the system error.
the number of the system error |
getOsMessage | public String getOsMessage()(Code) | | Returns the message of the system error.
the messager of the system error |
reviseMsgWithArgs | public String reviseMsgWithArgs(String msg)(Code) | | Revise placeholder in the given message with the setted arguments
Parameters: msg - message to be revised revised message |
|
|