import { DidCommProblemReportError } from "../../../errors/problem-reports/DidCommProblemReportError.mjs";
import "../../../errors/index.mjs";
import { DidCommConnectionProblemReportMessage } from "../messages/DidCommConnectionProblemReportMessage.mjs";
import "../messages/index.mjs";

//#region ../didcomm/src/modules/connections/errors/ConnectionProblemReportError.ts
var ConnectionProblemReportError = class extends DidCommProblemReportError {
	constructor(message, { problemCode }) {
		super(message, { problemCode });
		this.message = message;
		this.problemReport = new DidCommConnectionProblemReportMessage({ description: {
			en: message,
			code: problemCode
		} });
	}
};

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