com.novell.admin.common.exceptions
Class SimpleSPIException
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.SimpleSPIException
- All Implemented Interfaces:
- java.io.Serializable
- public final class SimpleSPIException
- extends SPIException
This class is used for SPIExceptions that have return errors codes.
Fields inherited from class com.novell.application.console.snapin.SnapinException |
SEVERITY_ERROR,
SEVERITY_FATAL,
SEVERITY_SEVERE,
SEVERITY_WARN |
Methods inherited from class com.novell.application.console.snapin.SnapinException |
getHelpID,
getHelpSetName,
getReportFlag,
getSeverity,
setHelpID,
setHelpSetName,
setReportFlag,
setSeverity |
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 |
SimpleSPIException
public SimpleSPIException(java.lang.String bundleName)
- Constructor.
- Parameters:
bundleName
- The resource bundle for the errors.
getErrorId
public java.lang.String getErrorId()
newException
public SPIException newException(java.lang.String error)
- Returns a SimpleSPIException
- Parameters:
error
- The error code.- Returns:
- SPIException
newException
public SPIException newException(java.lang.String error,
java.lang.String xtraMsg)
newException
public SPIException newException(java.lang.String error,
boolean reportFlag)
newException
public SPIException newException(java.lang.Exception e)
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Returns an error message.
- Returns:
- the error message.
- Overrides:
- getLocalizedMessage in class SPIException
API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated December 17 2003 1746.