2017-08-11 11:10:27 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Application without Delegations exception
|
2017-08-11 12:33:30 -04:00
|
|
|
*/
|
|
|
|
|
class ApplicationWithoutDelegationRecordsException extends Exception
|
2017-08-11 11:10:27 -04:00
|
|
|
{
|
2017-08-11 12:33:30 -04:00
|
|
|
// Redefine the exception so message isn't optional
|
|
|
|
|
public function __construct($message, $code = 0)
|
|
|
|
|
{
|
|
|
|
|
// some code
|
|
|
|
|
// make sure everything is assigned properly
|
|
|
|
|
parent::__construct($message, $code);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// custom string representation of object
|
|
|
|
|
public function __toString()
|
|
|
|
|
{
|
|
|
|
|
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
|
|
|
|
|
}
|
2017-08-11 11:10:27 -04:00
|
|
|
}
|