|
vSphere Client SDK API Documentation : version 5.5.0.1300321 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.vmware.vise.core.model.MutableMessageException
com.vmware.vise.data.query.DataException
public class DataException
Fault thrown by data-service adapters and providers to represent failure to fetch data.
It is used in the error field of a ResultSet
as shown in the examples below.
ResultSet
,
Serialized FormField Summary | |
---|---|
Object[] |
objects
Objects for which data could not be fetched. |
String[] |
properties
Properties that were not fetched. |
Throwable |
rootCause
Error describing why the data could not be retrieved. |
Constructor Summary | |
---|---|
DataException()
|
Method Summary | |
---|---|
static DataException |
newInstance(Throwable e)
Create a new DataException to report a failure to retrieve any object. |
static DataException |
newInstance(Throwable e,
Object[] objects,
String[] properties)
Create a new DataException for the associated objects and properties. |
static DataException |
newInstance(Throwable e,
Object object,
String property)
Create a new DataException for one object and one property. |
Methods inherited from class com.vmware.vise.core.model.MutableMessageException |
---|
getMessage, setMessage |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@optional public Object[] objects
@optional public String[] properties
public Throwable rootCause
Constructor Detail |
---|
public DataException()
Method Detail |
---|
public static DataException newInstance(Throwable e)
e
- the error to report.
public static DataException newInstance(Throwable e, Object object, String property)
e
- the error to report.object
- the object for which the data error occurred.property
- the property which could not be fetched.
public static DataException newInstance(Throwable e, Object[] objects, String[] properties)
e
- the error to report.objects
- the object for which the data error occurred.properties
- the properties which could not be fetched.
|
vSphere Client SDK API Documentation : version 5.5.0.1300321 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |