Bool Exception moved to exceptions dir.

main
Robert 3 years ago
parent 464bffc0a2
commit a073493d9c
  1. 2
      documents/folders.txt
  2. 2
      src/bootstrap/common.php
  3. 4
      src/classes/exceptions/Bool_Exception.php
  4. 2
      src/main.inc.php

@ -3,7 +3,6 @@ tts_framework/src
   ├── auto_loader.php (PSR-4-autoloader)
   ├── common.php (custom string FNs, wipe data, and dump)
   ├── errors.php (Error Handler)
   ├── Exceptions_common_bool.php (Not a valid bool type Exception)
   ├── filter.php (HTMLPurifier Bootstrap)
   ├── requires.php (secure_includes, file/dir Filters/Validators)
   ├── safer_io.php (Sanitize Input, Validate data and Escape output)
@ -37,6 +36,7 @@ tts_framework/src
     ├── app_environment.php (fetch if is_production environment)
     └── same_site.php (same_site: Lax, Strict, None)
   ├── exceptions
     ├── Bool_Exception.php (Handles invalid Boolean types)
     └── DB_Exception.php (Handles DB Exceptions)
   ├── html_document.php (HTML Class: set/get CSS/JS/Breadcrumbs/Title/Author/Header/Footer)
   ├── html_parser.php (Escape HTML into BB code...to save into db)

@ -77,7 +77,7 @@ final class common {
return true;
default:
if ($throw === true) {
throw new \tts\Exceptions_common_bool("Value: ({$bool})");
throw new \tts\exceptions\Bool_Exception("Value: ({$bool})");
} else {
return false;
}

@ -2,9 +2,9 @@
declare(strict_types=1);
namespace tts;
namespace tts\exceptions;
class Exceptions_common_bool extends \Exception {
class Bool_Exception extends \Exception {
public function errorMessage() {
$errorMsg = $this->getMessage() . ' is not a valid bool type.';

@ -29,7 +29,7 @@ views::ob_start();
require_once TTS_FRAMEWORK . 'bootstrap/errors.php';
require_once TTS_FRAMEWORK . 'bootstrap/validator.php';
require_once TTS_FRAMEWORK . 'bootstrap/safer_io.php';
require_once TTS_FRAMEWORK . 'bootstrap/Exceptions_common_bool.php';
require_once TTS_FRAMEWORK . 'classes/exceptions/Bool_Exception.php';
require_once TTS_FRAMEWORK . 'bootstrap/common.php';
require_once TTS_FRAMEWORK . 'bootstrap/requires.php';
require_once TTS_FRAMEWORK . 'bootstrap/auto_loader.php';

Loading…
Cancel
Save