updated exception
This commit is contained in:
parent
edcd18e8f5
commit
a32e7df5e0
@ -332,7 +332,7 @@ class Server implements CallbackListener, CommandListener, UsageInformationAble
|
|||||||
$login = Player::parseLogin($login);
|
$login = Player::parseLogin($login);
|
||||||
try {
|
try {
|
||||||
$replay = $this->maniaControl->getClient()->getValidationReplay($login);
|
$replay = $this->maniaControl->getClient()->getValidationReplay($login);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) { //UnavailableFeature Exception
|
||||||
$this->maniaControl->getErrorHandler()->triggerDebugNotice("Exception line 330 Server.php" . $e->getMessage());
|
$this->maniaControl->getErrorHandler()->triggerDebugNotice("Exception line 330 Server.php" . $e->getMessage());
|
||||||
Logger::logError("Couldn't get validation replay of '{$login}'. " . $e->getMessage());
|
Logger::logError("Couldn't get validation replay of '{$login}'. " . $e->getMessage());
|
||||||
return null;
|
return null;
|
||||||
|
@ -23,6 +23,7 @@ class FaultException extends Exception {
|
|||||||
case 'No replay to save':
|
case 'No replay to save':
|
||||||
case 'Internal error.':
|
case 'Internal error.':
|
||||||
case 'Unable to retrieve validation data. ':
|
case 'Unable to retrieve validation data. ':
|
||||||
|
case 'No new replay.':
|
||||||
return new UnavailableFeatureException($faultString, $faultCode);
|
return new UnavailableFeatureException($faultString, $faultCode);
|
||||||
case 'You must enable the callbacks to be able to do chat routing.':
|
case 'You must enable the callbacks to be able to do chat routing.':
|
||||||
case 'Chat routing not enabled.':
|
case 'Chat routing not enabled.':
|
||||||
|
@ -55,6 +55,7 @@ class DedimaniaWebHandler implements TimerListener {
|
|||||||
Logger::logError("Dedimania Error while opening session: '{$error}' Line 42");
|
Logger::logError("Dedimania Error while opening session: '{$error}' Line 42");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$data = $this->decode($data);
|
$data = $this->decode($data);
|
||||||
if (!is_array($data) || empty($data)) {
|
if (!is_array($data) || empty($data)) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user