public class ServiceError extends Object
ServiceException
or in the content of a
BatchStatus.ServiceErrors| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_TYPE
The "data" error type.
|
static String |
REQUEST_TYPE
The "request" error type.
|
| Constructor and Description |
|---|
ServiceError(String reason)
Creates a new error with just an error message.
|
ServiceError(String type,
String field,
String reason)
Creates a new error.
|
public static final String DATA_TYPE
public static final String REQUEST_TYPE
public ServiceError(String type, String field, String reason)
type - error type, may be null, DATA_TYPE
or REQUEST_TYPEfield - error field, may be nullreason - error messagepublic ServiceError(String reason)
reason - error messagepublic String toString()
public String getType()
public String getField()
public String getReason()
Copyright © 2012. All Rights Reserved.