public class NativeLibException extends Exception
| Constructor and Description |
|---|
NativeLibException()
The constructor.
|
NativeLibException(int libErr,
int osErr,
String libString,
String osString)
Creates a NativeLibException with the given values.
|
NativeLibException(String message)
Creates a NativeLibException with the given message.
|
NativeLibException(String message,
Throwable cause)
Creates a NativeLibException with the given message and cause.
|
NativeLibException(Throwable cause)
Creates a NativeLibException with the given cause.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(String arg)
Adds a string to the internal argument list.
|
static void |
addResourceBundle(String bundlePath)
Adds a resource bundle which contains localized error messages.
|
ArrayList<String> |
getArguments()
Returns the internal argument list.
|
int |
getLibErr()
Returns the number of the internal handled error.
|
String |
getLibMessage()
Returns the message of the internal handled error.
|
String |
getLocalizedLibMessage()
Returns the localized message of the internal handled error.
|
String |
getMessage() |
int |
getOsErr()
Returns the number of the system error.
|
String |
getOsMessage()
Returns the message of the system error.
|
String |
reviseMsgWithArgs(String msg)
Revise placeholder in the given message with the setted arguments
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NativeLibException()
public NativeLibException(String message)
message - to be usedpublic NativeLibException(Throwable cause)
cause - to be usedpublic NativeLibException(String message, Throwable cause)
message - message to be usedcause - cause to be usedpublic NativeLibException(int libErr,
int osErr,
String libString,
String osString)
libErr - identifier of the internal handled errorosErr - system error numberlibString - message for the internal handled errorosString - system error messagepublic static void addResourceBundle(String bundlePath)
bundlePath - path of bundle without localepublic String getMessage()
getMessage in class Throwablepublic int getLibErr()
public String getLibMessage()
public String getLocalizedLibMessage()
public int getOsErr()
public String getOsMessage()
public void addArgument(String arg)
arg - string to be added to the internal argument listpublic ArrayList<String> getArguments()
Copyright © 2001–2025. All rights reserved.