public class DataException extends MutableMessageException
ResultSet as shown in the examples below.
Example of a PropertyProviderAdapter's getProperties method returning a DataException
in the result.error field so that the error can be handled in the UI layer.
ResultSet,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
java.lang.Object[] |
objects
Objects for which data could not be fetched.
|
java.lang.String[] |
properties
Properties that were not fetched.
|
java.lang.Throwable |
rootCause
Error describing why the data could not be retrieved.
|
| Constructor and Description |
|---|
DataException() |
| Modifier and Type | Method and Description |
|---|---|
static DataException |
newInstance(java.lang.Throwable e)
Create a new DataException to report a failure to retrieve any object.
|
static DataException |
newInstance(java.lang.Throwable e,
java.lang.Object[] objects,
java.lang.String[] properties)
Create a new DataException for the associated objects and properties.
|
static DataException |
newInstance(java.lang.Throwable e,
java.lang.Object object,
java.lang.String property)
Create a new DataException for one object and one property.
|
getMessage, setMessage@optional public java.lang.Object[] objects
@optional public java.lang.String[] properties
public java.lang.Throwable rootCause
public static DataException newInstance(java.lang.Throwable e)
e - the error to report.public static DataException newInstance(java.lang.Throwable e, java.lang.Object object, java.lang.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(java.lang.Throwable e, java.lang.Object[] objects, java.lang.String[] properties)
e - the error to report.objects - the object for which the data error occurred.properties - the properties which could not be fetched.Copyright @ 2013-2018 VMware, Inc. All rights reserved.