Add class MD_JAIL for forcing coders to set time and memory limits

This commit is contained in:
2020-11-11 17:20:56 +01:00
committed by Stefan Rohde-Enslin
parent aa67de1e54
commit 6a6f71cf10
2 changed files with 177 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?PHP
declare(strict_types = 1);
/**
* Exception thrown by MDJail if a required security option has not been set.
*/
final class MDJailSecurityOptionNotSetException extends Exception {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
$errorMsg = 'A security option of MD_JAIL has not been set: <b>' . $this->getMessage() . '</b>).';
return $errorMsg;
}
}