|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.novell.application.console.snapin.SnapinException
SnapinException's can be thrown from snapins in certain methods to report exceptions or errors to ConsoleOne. The snapin exception can have severity, help information and reporting information. If the report flag is set, the caller (usually ConsoleOne) will put up a message box with the message associated with the exception as the body. The icon will be a warning icon if the severity is SEVERITY_WARN, or an error icon otherwise. If help is set for the exception, the details button will appear in the message box, linking the user to help. If the severity is SEVERITY_FATAL, ConsoleOne will terminate after reporting the error. An example of when to throw a SnapinException is in the NamespaceSnapin.getChildren() method if the children cannot be read because the connection to the backend could not be established.
| Field Summary | |
static int |
SEVERITY_ERROR
Possible value for the severity parameter. |
static int |
SEVERITY_FATAL
Possible value for the severity parameter. |
static int |
SEVERITY_SEVERE
Possible value for the severity parameter. |
static int |
SEVERITY_WARN
Possible value for the severity parameter. |
| Constructor Summary | |
SnapinException()
Creates a SnapinException object with no detailed message. |
|
SnapinException(java.lang.String message)
Creates a SnapinException object with a detailed message. |
|
SnapinException(java.lang.String message,
boolean reportFlag)
Creates a SnapinException object with a detailed message and sets the reporting flag. |
|
SnapinException(java.lang.String message,
boolean reportFlag,
int severity,
java.lang.String helpSetName,
java.lang.String helpID)
Creates a SnapinException object with a detailed message and sets the reporting flag, severity, help set name and help ID. |
|
SnapinException(java.lang.String message,
boolean reportFlag,
java.lang.String helpSetName)
Creates a SnapinException object with a detailed message and sets the reporting flag and help set name. |
|
SnapinException(java.lang.String message,
boolean reportFlag,
java.lang.String helpSetName,
java.lang.String helpID)
Creates a SnapinException object with a detailed message and sets the reporting flag, help set name and help ID. |
|
| Method Summary | |
java.lang.String |
getHelpID()
Returns the help ID associated with this exception. |
java.lang.String |
getHelpSetName()
Returns the help set name associated with this exception. |
boolean |
getReportFlag()
Returns true if the report flag is turned on for this exception. |
int |
getSeverity()
Returns the severity of this exception. |
void |
setHelpID(java.lang.String helpID)
Sets the help ID associated with this exception. |
void |
setHelpSetName(java.lang.String helpSetName)
Sets the help set name associated with this exception. |
void |
setReportFlag(boolean reportFlag)
Enable or disable reporting for this exception. |
void |
setSeverity(int severity)
Assigns a severity to this exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int SEVERITY_ERROR
public static final int SEVERITY_WARN
public static final int SEVERITY_SEVERE
public static final int SEVERITY_FATAL
| Constructor Detail |
public SnapinException()
public SnapinException(java.lang.String message)
message - The detailed message included with a SnapinException.
public SnapinException(java.lang.String message,
boolean reportFlag)
message - The detailed message included with a SnapinException.reportFlag - Pass true if ConsoleOne is to report the error, false otherwise.
public SnapinException(java.lang.String message,
boolean reportFlag,
java.lang.String helpSetName)
message - The detailed message included with a SnapinException.reportFlag - Pass true if ConsoleOne is to report the error, false otherwise.helpSetName - Help set name to give the user further details on handling this exception.
public SnapinException(java.lang.String message,
boolean reportFlag,
java.lang.String helpSetName,
java.lang.String helpID)
message - The detailed message included with a SnapinException.reportFlag - Pass true if ConsoleOne is to report the error, false otherwise.helpSetName - Help set name to give the user further details on handling this exception.helpID - Help ID associated with this exception.
public SnapinException(java.lang.String message,
boolean reportFlag,
int severity,
java.lang.String helpSetName,
java.lang.String helpID)
message - The detailed message included with a SnapinException.reportFlag - Pass true if ConsoleOne is to report the error, false otherwise.severity - Severity of this exception. See the SEVERITY_XXX variables for possible values.helpSetName - Help set name to give the user further details on handling this exception.helpID - Help ID associated with this exception.| Method Detail |
public int getSeverity()
public java.lang.String getHelpSetName()
public java.lang.String getHelpID()
public void setSeverity(int severity)
severity - Severity of this exceptions.public void setHelpSetName(java.lang.String helpSetName)
helpSetName - Help set name to associate with this exceptionpublic void setHelpID(java.lang.String helpID)
helpID - Help ID to associate with this exceptionpublic void setReportFlag(boolean reportFlag)
reportFlag - Pass true to turn on reporting, false to turn it off.public boolean getReportFlag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||