repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/settings.php | admin/settings.php |
<?php
require_once '../functions.php';
xiu_get_current_user();
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>Settings « Admin</title>
<link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="/static/assets/vendors/font-... | php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/slides.php | admin/slides.php |
<?php
require_once '../functions.php';
xiu_get_current_user();
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>Slides « Admin</title>
<link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="/static/assets/vendors/font-aw... | php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/post-delete.php | admin/post-delete.php | <?php
/**
* 根据客户端传递过来的ID删除对应数据
*/
require_once '../functions.php';
if (empty($_GET['id'])) {
exit('缺少必要参数');
}
// $id = (int)$_GET['id'];
$id = $_GET['id'];
// => '1 or 1 = 1'
// sql 注入
// 1,2,3,4
$rows = xiu_execute('delete from posts where id in (' . $id . ');');
// $_SERVER['HTTP_REFERER'] 获取页面来源
header('... | php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/category-delete.php | admin/category-delete.php | <?php
/**
* 根据客户端传递过来的ID删除对应数据
*/
require_once '../functions.php';
if (empty($_GET['id'])) {
exit('缺少必要参数');
}
// $id = (int)$_GET['id'];
$id = $_GET['id'];
// => '1 or 1 = 1'
// sql 注入
// 1,2,3,4
$rows = xiu_execute('delete from categories where id in (' . $id . ');');
// if ($rows > 0) {}
header('Location: ... | php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/categories.php | admin/categories.php | <?php
require_once '../functions.php';
xiu_get_current_user();
// 判断是否为需要编辑的数据
// ====================================
function add_category () {
if (empty($_POST['name']) || empty($_POST['slug'])) {
$GLOBALS['message'] = '请完整填写表单!';
$GLOBALS['success'] = false;
return;
}
// 接收并保存
$name = $_POS... | php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/inc/navbar.php | admin/inc/navbar.php | <nav class="navbar">
<button class="btn btn-default navbar-btn fa fa-bars"></button>
<ul class="nav navbar-nav navbar-right">
<li><a href="/admin/profile.php"><i class="fa fa-user"></i>个人中心</a></li>
<li><a href="/admin/login.php?action=logout"><i class="fa fa-sign-out"></i>退出</a></li>
</ul>
</nav>
| php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/inc/sidebar.php | admin/inc/sidebar.php | <!-- 也可以使用 $_SERVER['PHP_SELF'] 取代 $current_page -->
<?php
// 因为这个 sidebar.php 是被 index.php 载入执行,所以 这里的相对路径 是相对于 index.php
// 如果希望根治这个问题,可以采用物理路径解决
require_once '../functions.php';
$current_page = isset($current_page) ? $current_page : '';
$current_user = xiu_get_current_user();
?>
<div class="aside">
<div class="p... | php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/api/avatar.php | admin/api/avatar.php | <?php
/**
* 根据用户邮箱获取用户头像
* email => image
*/
require_once '../../config.php';
// 1. 接收传递过来的邮箱
if (empty($_GET['email'])) {
exit('缺少必要参数');
}
$email = $_GET['email'];
// 2. 查询对应的头像地址
$conn = mysqli_connect(XIU_DB_HOST, XIU_DB_USER, XIU_DB_PASS, XIU_DB_NAME);
if (!$conn) {
exit('连接数据库失败');
}
$res = mysqli_que... | php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/api/upload.php | admin/api/upload.php | <?php
// var_dump($_FILES['avatar']);
// 接收文件
// 保存文件
// 保存这个文件的访问URL
if (empty($_FILES['avatar'])) {
exit('必须上传文件');
# code...
}
$avatar = $_FILES['avatar'];
if ($avatar['error'] !== UPLOAD_ERR_OK) {
exit('上传失败');
# code...
}
// 校验类型大小格式等
// 移动文件到网站范围之内
$ext = pathinfo($avatar['name'], PATHINF... | php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/api/comment-delete.php | admin/api/comment-delete.php | <?php
/**
* 根据客户端传递过来的ID删除对应数据
*/
require_once '../../functions.php';
if (empty($_GET['id'])) {
exit('缺少必要参数');
}
// $id = (int)$_GET['id'];
$id = $_GET['id'];
// => '1 or 1 = 1'
// sql 注入
// 1,2,3,4
$rows = xiu_execute('delete from comments where id in (' . $id . ');');
// if ($rows > 0) {}
// header('Locati... | php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
ForeManWang/php-baixiu | https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/api/comments-list.php | admin/api/comments-list.php | <?php
/**
* 分页返回评论数据接口(JSON)
* Font: fira Code Source Code Pro Consolas
*/
// ==========引入所有预定义函数===========
require '../../functions.php';
// ==========设置响应类型为 JSON==========
header('Content-Type: application/json');
// =============分页逻辑==================
// 1、接收客户端传递过来的当前分页页码
$page = empty($_GET['page'])? 1 : i... | php | MIT | d37a7773b21107bbb8edc5af7cfa1cd84339ae81 | 2026-01-05T04:11:46.926172Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/phpunit.php | phpunit.php | <?php
require __DIR__.'/vendor/autoload.php';
date_default_timezone_set('UTC');
| php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Operation/InvalidOperationException.php | Exceptions/Operation/InvalidOperationException.php | <?php
namespace Exceptions\Operation;
use Exceptions\Tag\InvalidDataTag;
/**
* Use this exception in the event something went wrong with the state of the application and you cannot allow
* executing this operation because of that state. For example, processing a report with no report specified would
* yield an ex... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Operation/ForbiddenException.php | Exceptions/Operation/ForbiddenException.php | <?php
namespace Exceptions\Operation;
use Exceptions\Tag\AbortedTag;
use Exceptions\Tag\ForbiddenTag;
/**
* The user trying to execute an operation is not allowed to perform the operation expected. This results in an
* incomplete operation but not necessarily in a full request denial. This exception is the big bro... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Operation/NotImplementedException.php | Exceptions/Operation/NotImplementedException.php | <?php
namespace Exceptions\Operation;
use Exceptions\Tag\AbortedTag;
/**
* Use this exception when someone is calling a function/method that is not implemented yet. This is a good practice
* when implementing a lot of new functionality. Coupled to unit tests, you should not miss a NotImplementedException
* but at... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Operation/OperationException.php | Exceptions/Operation/OperationException.php | <?php
namespace Exceptions\Operation;
use Exceptions\Helpers\DefaultConstructorTrait;
use Exceptions\Helpers\DefaultsInterface;
use Exceptions\Helpers\FromException;
use Exceptions\Helpers\WithContext;
/**
* This is a tag like class that is used to regroup all Operation exceptions under a single base class.
*
* @... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Operation/UnexpectedException.php | Exceptions/Operation/UnexpectedException.php | <?php
namespace Exceptions\Operation;
use Exceptions\Tag\AbortedTag;
/**
* Use this exception in the event that an operation that expected a certain result from a sub function/method call
* but did not get what i expected. This exception is the reversed validation exception. Instead of validating the
* user's inp... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Operation/OperationExceptionInterface.php | Exceptions/Operation/OperationExceptionInterface.php | <?php
namespace Exceptions\Operation;
/**
* This interface defines the different accessor you can use when dealing with Operation exceptions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
interface OperationExceptionInterface
{
}
| php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Operation/AuthorizationException.php | Exceptions/Operation/AuthorizationException.php | <?php
namespace Exceptions\Operation;
use Exceptions\Tag\AbortedTag;
use Exceptions\Tag\UnauthorizedTag;
/**
* The user trying to execute an operation is not authorized to perform the operation expected. This results in an
* incomplete operation but not necessarily in a full request authorization denial. This exce... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/HttpExceptionInterface.php | Exceptions/Http/HttpExceptionInterface.php | <?php
namespace Exceptions\Http;
/**
* This interface defines the different accessor you can use when dealing with HTTP exceptions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
interface HttpExceptionInterface
{
/**
* Represents client errors.
*/
const CODE_CLASS_C... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/HttpException.php | Exceptions/Http/HttpException.php | <?php
namespace Exceptions\Http;
use Exceptions\Helpers\DefaultConstructorTrait;
use Exceptions\Helpers\DefaultsInterface;
use Exceptions\Helpers\FromException;
use Exceptions\Helpers\WithContext;
/**
* This is a tag like class that is used to regroup all Http exceptions under a single base class.
*
* Never throw... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/MethodNotAllowedException.php | Exceptions/Http/Client/MethodNotAllowedException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate header... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/UnsupportedMediaTypeException.php | Exceptions/Http/Client/UnsupportedMediaTypeException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The request was well-formed but was unable to be followed due to semantic errors, validation errors or domain constraints such as uniqueness of values.
*
* Never throw an exception at the user, always catch it can synthesize it to a ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/RequestedRangeNotSatisfiableException.php | Exceptions/Http/Client/RequestedRangeNotSatisfiableException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* This is the old version of the new RangeNotSatisfiableException. Consider throwing the newer one instead.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate head... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/ConflictException.php | Exceptions/Http/Client/ConflictException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The request could not be completed due to a conflict with the current state of the resource.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/ForbiddenException.php | Exceptions/Http/Client/ForbiddenException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\ForbiddenTag;
/**
* The server understood the request, but is refusing to fulfill it. Authorization will not help and the request
* should not be repeated.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html resp... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/UnauthorizedException.php | Exceptions/Http/Client/UnauthorizedException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\UnauthorizedTag;
/**
* The request requires user authentication that was not provided along with the request. Although debatable: if a
* user doesn't have permission to do something, you should be sending back a ForbiddenException instead of a
* Unauthori... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/NotFoundException.php | Exceptions/Http/Client/NotFoundException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\NotFoundTag;
/**
* The server has not found anything matching the Request-URI.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use the constants and accessor to ge... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/UnprocessableEntityException.php | Exceptions/Http/Client/UnprocessableEntityException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The request was well-formed but was unable to be followed due to semantic errors, validation errors or domain constraints such as uniqueness of values.
*
* Never throw an exception at the user, always catch it can synthesize it to a ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/RequestTimeoutException.php | Exceptions/Http/Client/RequestTimeoutException.php | <?php
namespace Exceptions\Http\Client;
/**
* The server tried to work the request out but something timed out along the way.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use the constants and accessor to get HTML values... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/RangeNotSatisfiableException.php | Exceptions/Http/Client/RangeNotSatisfiableException.php | <?php
namespace Exceptions\Http\Client;
/**
* The server cannot process the request properly because the requested length/range cannot be satisfied due to
* missing data.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/LockedException.php | Exceptions/Http/Client/LockedException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\ForbiddenTag;
/**
* The request was received but the server refused to fulfill it because it would affect/access a resource that is
* locked by another process somewhere.
*
* Never throw an exception at the user, always catch it can synthesize it to a co... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/RequestEntityTooLargeException.php | Exceptions/Http/Client/RequestEntityTooLargeException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* This is the old version of the new PayloadTooLargeException. Consider throwing the newer one instead.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers.... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/ExpectationFailedException.php | Exceptions/Http/Client/ExpectationFailedException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The request could not be completed because the request specified a "Expect" request header that the server cannot
* fulfill.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/UnavailableForLegalReasonsException.php | Exceptions/Http/Client/UnavailableForLegalReasonsException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\ForbiddenTag;
/**
* The request could not be satisfied because a legal restriction was made on that resource. This should be mostly
* used against resources that have been blocked for a legal demand but you can use it for anything that would cause
* legal... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/UpgradeRequiredException.php | Exceptions/Http/Client/UpgradeRequiredException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The request was received but the server refused to fulfill it because it doesn't use the latest communication
* protocol. This should be used when you are expecting a certain request structure that is now out of date and the
* system... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/LengthRequiredException.php | Exceptions/Http/Client/LengthRequiredException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The request could not be completed because the underlying process requires you to provide a length detailing the
* size/length of the request payload/content body.
*
* Never throw an exception at the user, always catch it can synthe... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/NotAcceptableException.php | Exceptions/Http/Client/NotAcceptableException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The resource identified by the request is only capable of generating response entities which have content
* characteristics not acceptable according to the accept headers sent in the request.
*
* Never throw an exception at the user... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/TooManyRequestsException.php | Exceptions/Http/Client/TooManyRequestsException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\ForbiddenTag;
/**
* The request could not be completed because the requester is making too many requests at the server. Use this
* exception if you are throttling users based on some value such as a leaky bucket algorithm.
*
* Never throw an exception at... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/RequestHeaderFieldsTooLargeException.php | Exceptions/Http/Client/RequestHeaderFieldsTooLargeException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The request could not be completed because the request specified contains either too many header fields or one
* field or the totality of the header fields contain too much data. This exception is related to
* PayloadTooLargeExceptio... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/PaymentRequiredException.php | Exceptions/Http/Client/PaymentRequiredException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\ForbiddenTag;
/**
* The request requires user to pay to access the resource or he must supply different identification or credentials
* to gain access to the resource.
*
* Never throw an exception at the user, always catch it can synthesize it to a corre... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/PayloadTooLargeException.php | Exceptions/Http/Client/PayloadTooLargeException.php | <?php
namespace Exceptions\Http\Client;
/**
* The server is refusing to process a request because the payload is larger than the server is willing or able to
* process.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use t... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/ProxyAuthorizationRequiredException.php | Exceptions/Http/Client/ProxyAuthorizationRequiredException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\UnauthorizedTag;
/**
* The resource cannot be reached because of proxy authentication failures.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use the constants a... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/MisdirectedRequestException.php | Exceptions/Http/Client/MisdirectedRequestException.php | <?php
namespace Exceptions\Http\Client;
/**
* The request could not be completed because the server is not able to produce a response. For example, it doesn't
* have the proper resources to handle the request. You should direct your request to another server.
*
* Never throw an exception at the user, always catch... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/BadRequestException.php | Exceptions/Http/Client/BadRequestException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request
* without modifications.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct ht... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/PreConditionRequiredException.php | Exceptions/Http/Client/PreConditionRequiredException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The request cannot be handled because you expected a pre-condition header field to be present and it was not.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/FailedDependencyException.php | Exceptions/Http/Client/FailedDependencyException.php | <?php
namespace Exceptions\Http\Client;
/**
* The request was received but the server refused to fulfill it because a dependency cannot be met. This could apply
* to a series of requests to execute in a certain workflow (WebDAV uses this in a PROPPATCH scenario) but you can also
* apply this to any other workflow ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/ClientErrorExceptionInterface.php | Exceptions/Http/Client/ClientErrorExceptionInterface.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Http\HttpExceptionInterface;
/**
* This is a tag interface used to group together all potential Client Error HTTP exceptions (400 class).
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
interface ClientErrorExceptionInterface exte... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/GoneException.php | Exceptions/Http/Client/GoneException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\NotFoundTag;
/**
* The request could not be completed because the resource you are requesting is now gone. It might have been deleted
* or moved somewhere else.
*
* Consider using 404 instead of 410 unless you want to have a different code for soft delet... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/UnrecoverableErrorException.php | Exceptions/Http/Client/UnrecoverableErrorException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\AbortedTag;
/**
* The server encountered an unrecoverable error with an internal provider while processing the request
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/ImATeapotException.php | Exceptions/Http/Client/ImATeapotException.php | <?php
namespace Exceptions\Http\Client;
/**
* The request could not be completed because the request specified a "Expect" request header that the server cannot
* fulfill.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/ClientErrorException.php | Exceptions/Http/Client/ClientErrorException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Http\HttpException;
use Exceptions\Tag\AbortedTag;
/**
* This is a tag like class that is used to regroup all Http/Client exceptions under a single base class.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html respo... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/PreConditionFailedException.php | Exceptions/Http/Client/PreConditionFailedException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The request could not be completed because the preconditions specified by the requester cannot be met by the server.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appro... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Client/URITooLongException.php | Exceptions/Http/Client/URITooLongException.php | <?php
namespace Exceptions\Http\Client;
use Exceptions\Tag\InvalidDataTag;
/**
* The server will not provide a response because the request URI you send was too long and might be missing important
* information. Instead the server refuses the server it in case he might misunderstand it.
*
* Never throw an except... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Server/InsuficientStorageException.php | Exceptions/Http/Server/InsuficientStorageException.php | <?php
namespace Exceptions\Http\Server;
/**
* This server cannot process the request because it doesn't have enough space to complete the request. This could be
* sent back if a server runs out of space in general or if the request cannot be completed due to limitations to the
* response size that you are ready to... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Server/ServerErrorExceptionInterface.php | Exceptions/Http/Server/ServerErrorExceptionInterface.php | <?php
namespace Exceptions\Http\Server;
use Exceptions\Http\HttpExceptionInterface;
/**
* This is a tag interface used to group together all potential Server Error HTTP exceptions (500 class).
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
interface ServerErrorExceptionInterface exte... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Server/LoopDetectedException.php | Exceptions/Http/Server/LoopDetectedException.php | <?php
namespace Exceptions\Http\Server;
/**
* This server detected that the request generated an endless loop while processing the request. This should be used
* only if you cannot properly throw a 403 before hand by detecting that the request would create an endless loop.
*
* Never throw an exception at the user... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Server/NotImplementedException.php | Exceptions/Http/Server/NotImplementedException.php | <?php
namespace Exceptions\Http\Server;
/**
* The server does not support the functionality required to fulfill the request.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use the constants and accessor to get HTML values ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Server/InternalServerErrorException.php | Exceptions/Http/Server/InternalServerErrorException.php | <?php
namespace Exceptions\Http\Server;
/**
* The server encountered an unexpected condition which prevented it from fulfilling the request.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use the constants and accessor to ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Server/GatewayTimeoutException.php | Exceptions/Http/Server/GatewayTimeoutException.php | <?php
namespace Exceptions\Http\Server;
/**
* This server is acting as a gateway or proxy to another server but the underlying server or process failed to
* respond in time.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Server/BadGatewayException.php | Exceptions/Http/Server/BadGatewayException.php | <?php
namespace Exceptions\Http\Server;
/**
* This server is acting as a gateway or proxy to another server but received an invalid response.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use the constants and accessor to... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Server/ServiceUnavailableException.php | Exceptions/Http/Server/ServiceUnavailableException.php | <?php
namespace Exceptions\Http\Server;
/**
* The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use the constan... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Server/HttpVersionNotSupportedException.php | Exceptions/Http/Server/HttpVersionNotSupportedException.php | <?php
namespace Exceptions\Http\Server;
/**
* This server cannot understand the request using the HTTP protocol version you are using.
*
* Never throw an exception at the user, always catch it can synthesize it to a correct html response with
* appropriate headers. You can use the constants and accessor to get HT... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Http/Server/ServerErrorException.php | Exceptions/Http/Server/ServerErrorException.php | <?php
namespace Exceptions\Http\Server;
use Exceptions\Http\HttpException;
use Exceptions\Tag\AbortedTag;
/**
* All server error http exceptions extend this class and save you the trouble of setting up the method that returns
* the error class code.
*/
abstract class ServerErrorException extends HttpException imp... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Tag/AlreadyExistsException.php | Exceptions/Tag/AlreadyExistsException.php | <?php
namespace Exceptions\Tag;
/**
* This is a tag interface that is used to conveys a shared means throughout many different exceptions in many
* different namespaces. If you want to catch a potential error about something that already exists, you would try to
* catch any exception that implements this interface... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Tag/NotFoundException.php | Exceptions/Tag/NotFoundException.php | <?php
namespace Exceptions\Tag;
/**
* This is a tag interface that is used to conveys a shared means throughout many different exceptions in many
* different namespaces. If you want to catch a potential error about something not being found, you would try to
* catch any exception that implements this interface.
*... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Tag/ExistsTag.php | Exceptions/Tag/ExistsTag.php | <?php
namespace Exceptions\Tag;
/**
* This is a tag interface that is used to conveys a shared means throughout many different exceptions in many
* different namespaces. If you want to catch a potential error about something that already exists, you would try to
* catch any exception that implements this interface... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Tag/OperationAbortedException.php | Exceptions/Tag/OperationAbortedException.php | <?php
namespace Exceptions\Tag;
/**
* This is a tag interface that is used to conveys a shared means throughout many different exceptions in many
* different namespaces. If you want to catch a potential error about something not being completed for different
* reasons, then you would want to catch any exception th... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Tag/ForbiddenTag.php | Exceptions/Tag/ForbiddenTag.php | <?php
namespace Exceptions\Tag;
/**
* This is a tag interface that is used to conveys a shared means throughout many different exceptions in many
* different namespaces. If you want to catch a potential error about something not being found, you would try to
* catch any exception that implements this interface.
*... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Tag/AbortedTag.php | Exceptions/Tag/AbortedTag.php | <?php
namespace Exceptions\Tag;
/**
* This is a tag interface that is used to conveys a shared means throughout many different exceptions in many
* different namespaces. If you want to catch a potential error about something not being completed for different
* reasons, then you would want to catch any exception th... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Tag/UnauthorizedTag.php | Exceptions/Tag/UnauthorizedTag.php | <?php
namespace Exceptions\Tag;
/**
* This is a tag interface that is used to conveys a shared means throughout many different exceptions in many
* different namespaces. If you want to catch a potential error about something that already exists, you would try to
* catch any exception that implements this interface... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Tag/InvalidDataTag.php | Exceptions/Tag/InvalidDataTag.php | <?php
namespace Exceptions\Tag;
/**
* This is a tag interface that is used to conveys a shared means throughout many different exceptions in many
* different namespaces. If you want to catch a potential error about something not being valid, such as the
* structure of data, the type of data, the validation rules o... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Tag/InvalidDataException.php | Exceptions/Tag/InvalidDataException.php | <?php
namespace Exceptions\Tag;
/**
* This is a tag interface that is used to conveys a shared means throughout many different exceptions in many
* different namespaces. If you want to catch a potential error about something not being valid, such as the
* structure of data, the type of data, the validation rules o... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Tag/NotFoundTag.php | Exceptions/Tag/NotFoundTag.php | <?php
namespace Exceptions\Tag;
/**
* This is a tag interface that is used to conveys a shared means throughout many different exceptions in many
* different namespaces. If you want to catch a potential error about something not being found, you would try to
* catch any exception that implements this interface.
*... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Collection/KeyNotFoundException.php | Exceptions/Collection/KeyNotFoundException.php | <?php
namespace Exceptions\Collection;
use Exceptions\Tag\NotFoundTag;
/**
* Use this exception when an operation on a collection tries to retrieve an element using a key that does not exist in
* the collection of items.
*
* Be careful not to throw this exception when data from a data source cannot be found unle... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Collection/ReadOnlyArrayItemException.php | Exceptions/Collection/ReadOnlyArrayItemException.php | <?php
namespace Exceptions\Collection;
/**
* Use this exception when an operation on a collection item that is locked/read-only tries to modify the item in
* question.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class ReadOnlyArrayItemException extends CollectionException
{
co... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Collection/KeyAlreadyExistsException.php | Exceptions/Collection/KeyAlreadyExistsException.php | <?php
namespace Exceptions\Collection;
use Exceptions\Tag\ExistsTag;
/**
* Use this exception when an operation on a collection tries to add an element using a key that already exists in the
* collection of items.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class KeyAlreadyExists... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Collection/CollectionException.php | Exceptions/Collection/CollectionException.php | <?php
namespace Exceptions\Collection;
use Exceptions\Helpers\DefaultConstructorTrait;
use Exceptions\Helpers\DefaultsInterface;
use Exceptions\Helpers\FromException;
use Exceptions\Helpers\WithContext;
/**
* This is a tag like class that is used to regroup all Collection exceptions under a single base class.
*
*... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Collection/FullException.php | Exceptions/Collection/FullException.php | <?php
namespace Exceptions\Collection;
/**
* Use this exception when an operation on a collection cannot be achieved because the collection has already reached
* it's limit and cannot accept more data.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class FullException extends Collect... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Collection/EmptyException.php | Exceptions/Collection/EmptyException.php | <?php
namespace Exceptions\Collection;
/**
* Use this exception when an operation on a collection cannot be completed because the collection is empty.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class EmptyException extends CollectionException
{
const MESSAGE = 'Array/collectio... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Collection/CollectionExceptionInterface.php | Exceptions/Collection/CollectionExceptionInterface.php | <?php
namespace Exceptions\Collection;
/**
* This interface defines the different accessor you can use when dealing with Collection exceptions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
interface CollectionExceptionInterface
{
}
| php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Collection/ReadOnlyArrayException.php | Exceptions/Collection/ReadOnlyArrayException.php | <?php
namespace Exceptions\Collection;
/**
* Use this exception when an operation on a collection that is locked/read-only tries to modify the collection of
* items.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class ReadOnlyArrayException extends CollectionException
{
const ME... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Data/NotFoundException.php | Exceptions/Data/NotFoundException.php | <?php
namespace Exceptions\Data;
use Exceptions\Tag\NotFoundTag;
/**
* Use this exception when the data requested by your code cannot be found. In most scenarios, this is the equivalent
* of an item that cannot be found in a filesystem or in a database. The big difference is that this item is not
* linked to a sp... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Data/DataException.php | Exceptions/Data/DataException.php | <?php
namespace Exceptions\Data;
use Exceptions\Helpers\DefaultConstructorTrait;
use Exceptions\Helpers\DefaultsInterface;
use Exceptions\Helpers\FromException;
use Exceptions\Helpers\WithContext;
/**
* This is a tag like class that is used to regroup all Data exceptions under a single base class.
*
* @author M... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Data/FormatException.php | Exceptions/Data/FormatException.php | <?php
namespace Exceptions\Data;
use Exceptions\Tag\InvalidDataTag;
/**
* Use this exception when the format of data passed to your code does not fit expected format. For example:.
*
* - You are expecting a data format such as JSON and received data in the form of XML
* - You are expecting a data in a format tha... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Data/ValidationException.php | Exceptions/Data/ValidationException.php | <?php
namespace Exceptions\Data;
use Exceptions\Tag\InvalidDataTag;
/**
* The data provided to your code is not following expected validations. These validations should be considered
* as any of the business model validations or domain validation. Something does not pass the basic validation steps,
* then you sho... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Data/IntegrityException.php | Exceptions/Data/IntegrityException.php | <?php
namespace Exceptions\Data;
use Exceptions\Tag\InvalidDataTag;
/**
* Use this exception when the data passed to your code would create an integrity issue. For example, the storage
* engine you are using complains that a foreign key or constraint is being violated.
*
* @author Mathieu Dumoulin <thecrazycod... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Data/DataExceptionInterface.php | Exceptions/Data/DataExceptionInterface.php | <?php
namespace Exceptions\Data;
/**
* This interface defines the different accessor you can use when dealing with Data exceptions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
interface DataExceptionInterface
{
}
| php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Data/FoundTooManyException.php | Exceptions/Data/FoundTooManyException.php | <?php
namespace Exceptions\Data;
/**
* Use this exception when the data requested by your code was found and it found actually more than expected. A good
* use for this is the findSingle usual function we find in many library and orm. If you have more than 1 record
* found, it might mean that you should send back ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Data/TypeException.php | Exceptions/Data/TypeException.php | <?php
namespace Exceptions\Data;
use Exceptions\Tag\InvalidDataTag;
/**
* The data provided to your code is not of the right type. This is part of the validation group of exceptions but
* pertains to type validation. You received an int and were expecting an object but did not want to use type hinting
* for flexi... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/Data/FoundTooLittleException.php | Exceptions/Data/FoundTooLittleException.php | <?php
namespace Exceptions\Data;
/**
* Use this exception when the data requested by your code was found but it found actually less than expected. A
* good use for this is when you are looking for a specific set of items such as 10 items but you end up finding only
* 9. In this case, you throw this exception.
*
... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/IOException.php | Exceptions/IO/IOException.php | <?php
namespace Exceptions\IO;
use Exceptions\Helpers\DefaultConstructorTrait;
use Exceptions\Helpers\DefaultsInterface;
use Exceptions\Helpers\FromException;
use Exceptions\Helpers\WithContext;
/**
* This is a tag like class that is used to regroup all IO exceptions under a single base class.
*
* @author Mathi... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/IOExceptionInterface.php | Exceptions/IO/IOExceptionInterface.php | <?php
namespace Exceptions\IO;
/**
* This interface defines the different accessor you can use when dealing with IO exceptions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
interface IOExceptionInterface
{
}
| php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/DirectoryNotFoundException.php | Exceptions/IO/Filesystem/DirectoryNotFoundException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\NotFoundTag;
/**
* Use this exception when your code tries to open a local directory but cannot find it.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class DirectoryNotFoundException extends FilesystemException implements... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/DirectoryNotWritableException.php | Exceptions/IO/Filesystem/DirectoryNotWritableException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\ForbiddenTag;
/**
* Use this exception when your code tries to write content to a directory but cannot do so due to filesystem
* permissions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class DirectoryNotWritableExcepti... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/FileNotWritableException.php | Exceptions/IO/Filesystem/FileNotWritableException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\ForbiddenTag;
/**
* Use this exception when your code tries to write some content to a file but cannot do so due to filesystem
* permissions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class FileNotWritableException ex... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/NoMoreSpaceException.php | Exceptions/IO/Filesystem/NoMoreSpaceException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\AbortedTag;
/**
* Use this exception when your code realizes that there is no more space available on the device to write to.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class NoMoreSpaceException extends FilesystemExcep... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/FileNotFoundException.php | Exceptions/IO/Filesystem/FileNotFoundException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\NotFoundTag;
/**
* Use this exception when your code tries to open a file but cannot find it.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class FileNotFoundException extends FilesystemException implements NotFoundTag
{
... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/DirectoryAlreadyExistsException.php | Exceptions/IO/Filesystem/DirectoryAlreadyExistsException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\ExistsTag;
/**
* Use this exception when your code tries to create a local directory but it already exists.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class DirectoryAlreadyExistsException extends FilesystemException im... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/NotADirectoryException.php | Exceptions/IO/Filesystem/NotADirectoryException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\InvalidDataTag;
/**
* Use this exception when your code tries to do something on a directory but the passed on item is not a directory.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class NotADirectoryException extends Fil... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.