Home
last modified time | relevance | path

Searched refs:RemoteException (Results 1 – 11 of 11) sorted by relevance

/dokuwiki/inc/Remote/
H A DJsonRpcServer.php28 * @throws RemoteException
37 throw new RemoteException("JSON-RPC server not enabled.", -32605);
45 throw new RemoteException("JSON-RPC server only accepts POST requests.", -32606);
51 … throw new RemoteException("JSON-RPC server only accepts application/json requests.", -32606);
65 throw new RemoteException("JSON-RPC server only accepts valid JSON.", -32700);
80 * @throws RemoteException
171 * @throws RemoteException
180 … throw new RemoteException("server error. not authorized to call method $methodname", -32603);
183 … throw new RemoteException("server error. forbidden to call the method $methodname", -32604);
185 } catch (RemoteException $e) {
H A DApiCore.php207 * @throws RemoteException
400 * @throws RemoteException
429 * @throws RemoteException
451 * @throws RemoteException
475 * @throws RemoteException
520 * @throws RemoteException
568 * @throws RemoteException
658 * @throws RemoteException no id, empty new page or locked
671 throw new RemoteException('Refusing to write an empty new wiki page', 132);
676 throw new RemoteException('The page is currently locked', 133);
[all …]
H A DRemoteException.php8 class RemoteException extends \Exception class
H A DAccessDeniedException.php8 class AccessDeniedException extends RemoteException
H A DApi.php119 * @throws RemoteException
131 throw new RemoteException('Method does not exist', -32603);
139 throw new RemoteException($e->getMessage(), -32602);
147 * @throws RemoteException thrown when the API is disabled
H A DLegacyApiCore.php100 } catch (RemoteException $e) {
115 } catch (RemoteException $e) {
150 } catch (RemoteException $e) {
165 } catch (RemoteException $e) {
355 if ($user === '') throw new RemoteException('empty or invalid user', 401);
356 if ($name === '') throw new RemoteException('empty or invalid user name', 402);
357 if (!mail_isvalid($mail)) throw new RemoteException('empty or invalid mail address', 403);
H A DXmlRpcServer.php63 } catch (RemoteException $e) {
/dokuwiki/lib/plugins/usermanager/
H A Dremote.php6 use dokuwiki\Remote\RemoteException; alias
33 * @throws RemoteException
56 if ($user === '') throw new RemoteException('empty or invalid user', 401);
57 if ($name === '') throw new RemoteException('empty or invalid user name', 402);
58 if (!mail_isvalid($mail)) throw new RemoteException('empty or invalid mail address', 403);
64 throw new RemoteException('Could not generate password', 405);
/dokuwiki/_test/tests/Remote/
H A DApiCoreTest.php8 use dokuwiki\Remote\RemoteException; alias
408 } catch (RemoteException $e) {
410 $this->assertInstanceOf(RemoteException::class, $e);
416 } catch (RemoteException $e) {
418 $this->assertInstanceOf(RemoteException::class, $e);
485 } catch (RemoteException $e) {
487 $this->assertInstanceOf(RemoteException::class, $e);
493 } catch (RemoteException $e) {
495 $this->assertInstanceOf(RemoteException::class, $e);
683 } catch (RemoteException $e) {
[all …]
H A DApiTest.php8 use dokuwiki\Remote\RemoteException; alias
233 } catch (RemoteException $th) {
263 $this->expectException(RemoteException::class);
292 $this->expectException(RemoteException::class);
303 $this->expectException(RemoteException::class);
/dokuwiki/lib/plugins/usermanager/_test/
H A DRemoteApiTest.php7 use dokuwiki\Remote\RemoteException; alias
111 $this->expectException(RemoteException::class);
135 $this->expectException(RemoteException::class);
159 $this->expectException(RemoteException::class);