8
0
Fork 0

Stop publishing on duplicate page

Dieser Commit ist enthalten in:
Stéphane Goetz 2016-01-25 14:47:37 +01:00
Ursprung ef5dc8ea52
Commit 74b11f6c7b
2 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -69,6 +69,10 @@ class Api
$message .= (string) $response->getBody();
}
if ($level == '4' && strpos($message, "page with this title already exists") !== false) {
return new DuplicateTitleException($message, 0, $e->getPrevious());
}
return new BadResponseException($message, $request, $response, $e->getPrevious());
}

Datei anzeigen

@ -0,0 +1,6 @@
<?php namespace Todaymade\Daux\Format\Confluence;
class DuplicateTitleException extends \RuntimeException
{
}