<?php
/**
 * Invoice generation exception.
 *
 * @package Harbor_EU_EInvoicing_For_WooCommerce
 */

defined( 'ABSPATH' ) || exit;

class HEIN_Invoice_Exception extends RuntimeException {

	private string $error_code;

	public function __construct( string $message, string $error_code = '' ) {
		parent::__construct( $message );
		$this->error_code = $error_code;
	}

	public function error_code(): string {
		return $this->error_code;
	}
}
