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 |
|---|---|
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 and Description |
|---|
DataException() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getMessage, setMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString@optional public Object[] objects
@optional public String[] properties
public Throwable rootCause
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.Copyright @ 2013 VMware, Inc. All rights reserved.