Rev | Line | |
---|
[1227] | 1 | package gov.va.med.edp.rpc;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.dao.InvalidDataAccessApiUsageException;
|
---|
| 4 | import gov.va.med.vistalink.adapter.record.VistaLinkFaultException;
|
---|
| 5 |
|
---|
| 6 | /**
|
---|
| 7 | * TODO: document VistaLinkRpcInvalidApiUsageException
|
---|
| 8 | */
|
---|
| 9 | public class VistaLinkRpcInvalidApiUsageException extends InvalidDataAccessApiUsageException {
|
---|
| 10 |
|
---|
| 11 | private VistaLinkFaultException fault;
|
---|
| 12 |
|
---|
| 13 | public VistaLinkRpcInvalidApiUsageException(VistaLinkFaultException fault) {
|
---|
| 14 | super(fault.getMessage());
|
---|
| 15 | this.fault = fault;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | public String getErrorCode() {
|
---|
| 19 | return fault.getErrorCode();
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | public String getErrorMessage() {
|
---|
| 23 | return fault.getErrorMessage();
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | public String getErrorType() {
|
---|
| 27 | return fault.getErrorType();
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | public String getFaultActor() {
|
---|
| 31 | return fault.getFaultActor();
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | public String getFaultCode() {
|
---|
| 35 | return fault.getFaultCode();
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | public String getFaultString() {
|
---|
| 39 | return fault.getFaultString();
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.