public class ResultDesc extends Object implements Encodable
Constructor and Description |
---|
ResultDesc(String ref,
OptString failure)
JSON-driven constructor.
|
ResultDesc(String ref,
String failure)
Direct constructor.
|
Modifier and Type | Method and Description |
---|---|
JSONLiteral |
encode(EncodeControl control)
Encode this object for transmission or persistence.
|
String |
failure()
Get the error message string.
|
String |
ref()
Get the subject object's reference string.
|
@JSONMethod(value={"ref","failure"}) public ResultDesc(String ref, OptString failure)
ref
- Object reference of the object acted upon.failure
- Optional error message.public JSONLiteral encode(EncodeControl control)
public String failure()
public String ref()
Copyright © 2017. All rights reserved.