mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2025-01-11 15:01:52 +00:00
33 lines
479 B
PHP
33 lines
479 B
PHP
|
<?php namespace GO;
|
||
|
|
||
|
use Exception;
|
||
|
|
||
|
class FailedJob
|
||
|
{
|
||
|
/**
|
||
|
* @var Job
|
||
|
*/
|
||
|
private $job;
|
||
|
|
||
|
/**
|
||
|
* @var Exception
|
||
|
*/
|
||
|
private $exception;
|
||
|
|
||
|
public function __construct(Job $job, Exception $exception)
|
||
|
{
|
||
|
$this->job = $job;
|
||
|
$this->exception = $exception;
|
||
|
}
|
||
|
|
||
|
public function getJob(): Job
|
||
|
{
|
||
|
return $this->job;
|
||
|
}
|
||
|
|
||
|
public function getException(): Exception
|
||
|
{
|
||
|
return $this->exception;
|
||
|
}
|
||
|
}
|