blob: 0c7c418d608fec2022fae9698116d51d4dedc0e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package org.onap.sdc.dcae.catalog.engine;
import org.onap.sdc.dcae.catalog.engine.CatalogRequest;
import org.onap.sdc.dcae.catalog.engine.CatalogResponse;
/**
*/
public class CatalogError extends CatalogResponse {
public CatalogError(CatalogRequest theRequest, String theMessage) {
super(theRequest);
error().put("message", theMessage);
}
public CatalogError(CatalogRequest theRequest, String theMessage, Throwable theError) {
super(theRequest);
error().put("message", theMessage)
.put("exception", theError.toString());
}
}
|