const require_DidCommProblemReportError = require('../../../errors/problem-reports/DidCommProblemReportError.js');
require('../../../errors/index.js');
const require_DidCommDidExchangeProblemReportMessage = require('../messages/DidCommDidExchangeProblemReportMessage.js');
require('../messages/index.js');

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

//#endregion
exports.DidExchangeProblemReportError = DidExchangeProblemReportError;