<?php
/**
 * Service Exception
 *
 * Exception for service layer errors
 *
 * @package NemtlyBooking
 * @since   PBOOKING_SINCE
 */

namespace NemtlyBooking\Exceptions;

/**
 * Service Exception class
 *
 * @since PBOOKING_SINCE
 */
class Service_Exception extends Nemtly_Booking_Exception {

    /**
     * Constructor
     *
     * @since PBOOKING_SINCE
     *
     * @param string $message   Exception message.
     * @param string $error_code Error code.
     * @param array  $error_data Error data.
     */
    public function __construct( $message = '', $error_code = 'service_error', $error_data = [] ) {
        parent::__construct( $message, $error_code, $error_data, 500 );
    }
}
