Files
crm.clientright.ru/modules/ITS4YouLibrary/limonade-master/tests/apps/04-errors.php
Fedor ac7467f0b4 Major CRM updates: AI Assistant, Court Status API, S3 integration improvements, and extensive file storage system
- Added comprehensive AI Assistant system (aiassist/ directory):
  * Vector search and embedding capabilities
  * Typebot proxy integration
  * Elastic search functionality
  * Message classification and chat history
  * MCP proxy for external integrations

- Implemented Court Status API (GetCourtStatus.php):
  * Real-time court document status checking
  * Integration with external court systems
  * Comprehensive error handling and logging

- Enhanced S3 integration:
  * Improved file backup system with metadata
  * Batch processing capabilities
  * Enhanced error logging and recovery
  * Copy operations with URL fixing

- Added Telegram contact creation API
- Improved error logging across all modules
- Enhanced callback system for AI responses
- Extensive backup file storage with timestamps
- Updated documentation and README files

- File storage improvements:
  * Thousands of backup files with proper metadata
  * Fix operations for broken file references
  * Project-specific backup and recovery systems
  * Comprehensive file integrity checking

Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
2025-10-16 11:17:21 +03:00

70 lines
1.3 KiB
PHP

<?php
require_once dirname(dirname(dirname(__FILE__))).'/lib/limonade.php';
dispatch('/no-error', 'test_no_error');
function test_no_error()
{
return "No error";
}
dispatch('/not_found', 'test_not_found');
function test_not_found()
{
return halt(NOT_FOUND);
}
dispatch('/server_error', 'test_server_error');
function test_server_error()
{
return halt(SERVER_ERROR);
}
dispatch('/halt', 'test_halt');
function test_halt()
{
halt(SERVER_ERROR);
return "This shouldn't be outputed.";
}
dispatch('/trigger_error/:level', 'test_trigger_error');
function test_trigger_error($level = 'E_USER_ERROR')
{
$level = strtoupper($level);
switch($level)
{
case 'E_USER_WARNING':
$err = E_USER_WARNING;
$body = "This should be outputed.";
break;
case 'E_USER_NOTICE':
$err = E_USER_NOTICE;
$body = "This should be outputed.";
break;
default:
$err = E_USER_ERROR;
$body = "This shouldn't be outputed.";
break;
}
trigger_error("Error !", $err);
return $body;
}
dispatch('/halt1234', 'test_halt1234');
function test_halt1234()
{
halt(1234);
return "This shouldn't be outputed.";
}
error(1234, 'my_1234_error_handler');
function my_1234_error_handler($errno, $errstr, $errfile, $errline)
{
status(501);
echo "A personnal error #$errno";
}
run();