|ServerException||Class for server-side exceptions in postActiv|
|ServerException||Subclass of PHP Exception for server errors.|
|__construct||Constructor for the exception, which by default will log the exception even if otherwise it’s caught.|
|__toString||Return a string representation of the exception.|
|AlreadyFulfilledException||Class for an exception when trying to do something that was probably already done.|
|UnsupportedMediaException||Class for a server exception caused by handling an unsupported media type, typically through an attachment/file upload.|
|UseFileAsThumbnailException||A specific variant of UnsupportedMediaException where we do not have a thumbnail generated for the given file.|
Class for server-side exceptions in postActiv
the micro-blogging software
Copyright © 2016-2017, Maiyannah Bishop
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
ServerException and descendant classes as well as the canonical error definitions
These classes represent various internal server errors that ususally are not fixable by the end user.
Tested with PHP 7
Class for an exception when trying to do something that was probably already done.
This is a common case for example when remote sites are not up to date with our database. For example subscriptions, where a remote user may be unsubscribed from our user, but they request it anyway.
This exception should be caught in a manner that lets the execution continue as if the desired action did what it was supposed to do.
Constructor for the exception, which by default will log the exception even if otherwise it’s caught.
public function __construct( $message = null, $code = SERVER_EXCEPTION, Exception $previous = null, $severity = LOG_ERR )
Return a string representation of the exception.
public function __toString()