19 lines
455 B
PHP
19 lines
455 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class BusinessException extends RuntimeException
|
|
{
|
|
protected $context = array();
|
|
|
|
public function __construct($message, array $context = array(), $code = 422, Throwable $previous = null)
|
|
{
|
|
parent::__construct($message, (int) $code, $previous);
|
|
$this->context = $context;
|
|
}
|
|
|
|
public function getContext()
|
|
{
|
|
return $this->context;
|
|
}
|
|
}
|