summaryrefslogtreecommitdiffstats
path: root/dcaedt_catalog/service/src/main/java/org/onap/sdc/dcae/catalog/engine/CatalogError.java
blob: 8518b0dd43f2eaea715319f1e020696d35e15f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.onap.sdc.dcae.catalog.engine;

/**
 */
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());
	}
}