import { DidCommProblemReportMessage } from "../../messages/problem-reports/DidCommProblemReportMessage.mjs";
import "../../messages/problem-reports/index.mjs";
import { CredoError } from "@credo-ts/core";

//#region ../didcomm/src/errors/problem-reports/DidCommProblemReportError.ts
var DidCommProblemReportError = class extends CredoError {
	constructor(message, { problemCode }) {
		super(message);
		this.problemReport = new DidCommProblemReportMessage({ description: {
			en: message,
			code: problemCode
		} });
	}
};

//#endregion
export { DidCommProblemReportError };
//# sourceMappingURL=DidCommProblemReportError.mjs.map