Skip to content

Commit

Permalink
SPDW-949 : mise en place event Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-homann committed Dec 10, 2019
1 parent 66bd831 commit 94603e0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Webservice/Event/EventException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
namespace Efrogg\Webservice\Event;

use Symfony\Component\EventDispatcher\Event;

class EventException extends Event
{
const EVENT_EXCEPTION = 'EVENT_EXCEPTION';

private $exception;

/**
* EventException constructor.
* @param $exception
*/
public function __construct($exception)
{
$this->exception = $exception;
}

/**
* @return mixed
*/
public function getException()
{
return $this->exception;
}


}

0 comments on commit 94603e0

Please sign in to comment.