blob: 63611d8df24910296abdf4a79023f97eb2917850 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package org.onap.ccsdk.apps.services;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.annotation.JsonValue;
@JsonRootName(value="error")
public class RestRpcError extends RestError {
public RestRpcError() {
this.errorType = "rpc";
}
public RestRpcError(String errorTag, String errorMessage) {
this.errorType = "rpc";
this.errorTag = errorTag;
this.errorMessage = errorMessage;
this.errorInfo = errorMessage;
}
public RestRpcError(String errorTag, String errorMessage, Throwable t) {
this.errorType = "rpc";
this.errorTag = errorTag;
this.errorMessage = errorMessage;
this.errorInfo = t.getLocalizedMessage();
}
}
|