Skip to content

Commit c452ad3

Browse files
author
Joerg Huber
committed
Added ErrorDetails property, so that the already unmarshalled error
object can be pushed to local queue.
1 parent 37f3ed8 commit c452ad3

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

  • SIF3InfraREST/SIF3REST/src/main/java/sif3/infra/rest/queue/types

SIF3InfraREST/SIF3REST/src/main/java/sif3/infra/rest/queue/types/ErrorInfo.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
import java.io.Serializable;
2020

21+
import sif3.common.ws.ErrorDetails;
22+
2123
/**
2224
* This class is a utility type to allow a consumer to package the actual ERROR data and related
2325
* information in one structure. This type uses the actual ERROR payload data as a String as it has been
@@ -33,4 +35,22 @@
3335
public class ErrorInfo extends DelayedBaseInfo implements Serializable
3436
{
3537
private static final long serialVersionUID = 626191573052681937L;
38+
39+
private ErrorDetails errorDetail = null;
40+
41+
public ErrorDetails getErrorDetail()
42+
{
43+
return errorDetail;
44+
}
45+
46+
public void setErrorDetail(ErrorDetails errorDetail)
47+
{
48+
this.errorDetail = errorDetail;
49+
}
50+
51+
@Override
52+
public String toString()
53+
{
54+
return "ErrorInfo [errorDetail=" + errorDetail + ", toString()=" + super.toString() + "]";
55+
}
3656
}

0 commit comments

Comments
 (0)