com.novell.admin.common.exceptions
Class UniqueSPIException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.novell.application.console.snapin.SnapinException
|
+--com.novell.admin.common.exceptions.SPIException
|
+--com.novell.admin.common.exceptions.UniqueSPIException
- All Implemented Interfaces:
- java.io.Serializable
- public final class UniqueSPIException
- extends SPIException
This class is used for SPIExceptions that have return error codes.
Field Summary |
static java.lang.String |
ERR_CODE
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ERR_CODE
public static final java.lang.String ERR_CODE
UniqueSPIException
public UniqueSPIException(java.lang.String bundleName)
- Constructor
- Parameters:
bundleName
- The resource bundle for the errors.
newException
public SPIException newException(int errorCode,
java.lang.String funcName)
- Creates a UniqueSPIException
- Parameters:
errorCode
- The function's return error code.funcName
- The class name of the thrown exception.- Returns:
- SPIException
newException
public SPIException newException(int errorCode,
java.lang.String className,
java.lang.String funcName)
- Creates a UniqueSPIException
- Parameters:
errorCode
- The function's return error code.className
- The class name that threw the exception.funcName
- The class name of the thrown exception.- Returns:
- SPIException
getErrorCode
public int getErrorCode()
- Retrieves the error code for the exception.
- Returns:
- The error code.
getFunctionName
public java.lang.String getFunctionName()
- Retrieves the name of the function that returned the error code.
- Returns:
- The function name.
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Retrieves the error message.
- Returns:
- The error message.
- Overrides:
- getLocalizedMessage in class SPIException
API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.