DCAE-D be initial commit
[sdc/dcae-d/dt-be-main.git] / dcaedt_catalog / service / src / main / java / org / onap / sdc / dcae / catalog / engine / CatalogError.java
1 package org.onap.sdc.dcae.catalog.engine;
2
3 import org.onap.sdc.dcae.catalog.engine.CatalogRequest;
4 import org.onap.sdc.dcae.catalog.engine.CatalogResponse;
5
6 /**
7  */
8 public class CatalogError extends CatalogResponse {
9
10         public CatalogError(CatalogRequest theRequest, String theMessage) {
11                 super(theRequest);
12                 error().put("message", theMessage);
13         }
14
15         public CatalogError(CatalogRequest theRequest, String theMessage, Throwable theError) {
16                 super(theRequest);
17                 error().put("message", theMessage)
18                                          .put("exception", theError.toString());
19         }
20 }