for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Mollie error.
*
* @author Pronamic <[email protected]>
* @copyright 2005-2019 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay
*/
namespace Pronamic\WordPress\Pay\Gateways\Mollie;
* Mollie error
* @link https://docs.mollie.com/guides/handling-errors
* @author Remco Tolsma
* @version 2.0.9
* @since 2.0.9
class Error extends \Exception {
* Status.
* @var int
private $status;
* Title.
* @var string
private $title;
* Detail.
public $detail;
* Construct Mollie error.
* @param int $status Status.
* @param string $title Title.
* @param string $detail Detail.
public function __construct( $status, $title, $detail ) {
$message = sprintf(
'%s - %s',
$title,
$detail
);
parent::__construct( $message, $status );
$this->status = $status;
$this->title = $title;
$this->detail = $detail;
}
* Get status.
* @return int
public function get_status() {
return $this->status;
* Get title.
* @return string
public function get_title() {
return $this->title;
public function get_detail() {
return $this->detail;