All Packages Class Hierarchy This Package Previous Next Index
Class com.sgi.sysadm.ui.TaskInitFailedException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----com.sgi.sysadm.ui.TaskInitFailedException
- public class TaskInitFailedException
- extends Exception
TaskInitFailedException is thrown when one of Task.setTaskDataAttr(),
Task.setOperands(), or Task.verifyPrereqs() fails.
Use getErrorCode() to determine what caused the exception. Use
Exception.getMessage() to get a localized message suitable for
display to the user.
-
GET_PRIV_FAILED
- Could not obtain privileges.
-
INVALID_DATA_ATTR
- Invalid data attribute key in Task.setDataAttr().
-
INVALID_OPERANDS
- Invalid number of operands or illegal operand type.
-
INVALID_PREREQS
- System, data and/or operand(s) not in required state.
-
TaskInitFailedException(String, int)
- Constructor.
-
getErrorCode()
- Get the error code associated with this exception.
INVALID_DATA_ATTR
public static final int INVALID_DATA_ATTR
- Invalid data attribute key in Task.setDataAttr().
INVALID_OPERANDS
public static final int INVALID_OPERANDS
- Invalid number of operands or illegal operand type.
GET_PRIV_FAILED
public static final int GET_PRIV_FAILED
- Could not obtain privileges. It is not usually necessary to display
the error message in this case because the user pressed cancel.
INVALID_PREREQS
public static final int INVALID_PREREQS
- System, data and/or operand(s) not in required state.
TaskInitFailedException
public TaskInitFailedException(String msg,
int errorCode)
- Constructor.
- Parameters:
- msg - Localized error message suitable for display to users.
- errorCode - Code indicating what caused the exception.
getErrorCode
public int getErrorCode()
- Get the error code associated with this exception.
- Returns:
- Error code associated with this exception.
All Packages Class Hierarchy This Package Previous Next Index