public class ServiceResult extends Object
ServiceResult class.
| Constructor and Description |
|---|
ServiceResult()
Constructor for ServiceResult.
|
ServiceResult(StatusCode code)
Constructor for ServiceResult.
|
ServiceResult(StatusCode code,
Throwable e)
Constructor for ServiceResult.
|
ServiceResult(UnsignedInteger code)
Constructor for ServiceResult.
|
ServiceResult(UnsignedInteger code,
Throwable e)
Constructor for ServiceResult.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
buildExceptionTrace(Throwable e)
buildExceptionTrace.
|
String |
getAdditionalInfo()
Getter for the field
additionalInfo. |
StatusCode |
getCode()
Getter for the field
code. |
ServiceResult |
getInnerResult()
Getter for the field
innerResult. |
LocalizedText |
getLocalizedText()
Getter for the field
localizedText. |
String |
getNamespaceUri()
Getter for the field
namespaceUri. |
String |
getSymbolicId()
Getter for the field
symbolicId. |
boolean |
isBad()
isBad.
|
boolean |
isGood()
isGood.
|
void |
setAdditionalInfo(String additionalInfo)
Setter for the field
additionalInfo. |
void |
setCode(StatusCode code)
Setter for the field
code. |
void |
setInnerResult(ServiceResult innerResult)
Setter for the field
innerResult. |
void |
setLocalizedText(LocalizedText localizedText)
Setter for the field
localizedText. |
void |
setNamespaceUri(String namespaceUri)
Setter for the field
namespaceUri. |
void |
setSymbolicId(String symbolicId)
Setter for the field
symbolicId. |
static ServiceResult |
toServiceResult(Throwable t)
Create service result with stack trace from an exception.
|
public ServiceResult()
Constructor for ServiceResult.
public ServiceResult(StatusCode code)
Constructor for ServiceResult.
code - a StatusCode object.public ServiceResult(StatusCode code, Throwable e)
Constructor for ServiceResult.
code - a StatusCode object.e - a Throwable object.public ServiceResult(UnsignedInteger code)
Constructor for ServiceResult.
code - a UnsignedInteger object.public ServiceResult(UnsignedInteger code, Throwable e)
Constructor for ServiceResult.
code - a UnsignedInteger object.e - a Throwable object.public static ServiceResult toServiceResult(Throwable t)
t - throwablepublic String getAdditionalInfo()
Getter for the field additionalInfo.
String object.public StatusCode getCode()
Getter for the field code.
StatusCode object.public ServiceResult getInnerResult()
Getter for the field innerResult.
ServiceResult object.public LocalizedText getLocalizedText()
Getter for the field localizedText.
LocalizedText object.public String getNamespaceUri()
Getter for the field namespaceUri.
String object.public String getSymbolicId()
Getter for the field symbolicId.
String object.public boolean isBad()
isBad.
public boolean isGood()
isGood.
public void setAdditionalInfo(String additionalInfo)
Setter for the field additionalInfo.
additionalInfo - a String object.public void setCode(StatusCode code)
Setter for the field code.
code - a StatusCode object.public void setInnerResult(ServiceResult innerResult)
Setter for the field innerResult.
innerResult - a ServiceResult object.public void setLocalizedText(LocalizedText localizedText)
Setter for the field localizedText.
localizedText - a LocalizedText object.public void setNamespaceUri(String namespaceUri)
Setter for the field namespaceUri.
namespaceUri - a String object.Copyright © 2026. All rights reserved.