Initial commit: ROA2WEB - FastAPI + Vue.js + Telegram Bot
Modern ERP Reports Application with microservices architecture Tech Stack: - Backend: FastAPI + python-oracledb (Oracle DB integration) - Frontend: Vue.js 3 + PrimeVue + Vite - Telegram Bot: python-telegram-bot + SQLite - Infrastructure: Shared database pool, JWT authentication, SSH tunnel Features: - FastAPI backend with async Oracle connection pool - Vue.js 3 responsive frontend with PrimeVue components - Telegram bot alternative interface - Microservices architecture with shared components - Complete deployment support (Linux Docker + Windows IIS) - Comprehensive testing (Playwright E2E + pytest) Repository Structure: - reports-app/ - Main application (backend, frontend, telegram-bot) - shared/ - Shared components (database pool, auth, utils) - deployment/ - Deployment scripts (Linux & Windows) - docs/ - Project documentation - security/ - Security scanning and git hooks
This commit is contained in:
27
shared/utils/exceptions.py
Normal file
27
shared/utils/exceptions.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""
|
||||
Exception handlers comune pentru ROA2WEB
|
||||
"""
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
class ROAException(Exception):
|
||||
"""Exception de bază pentru aplicațiile ROA"""
|
||||
def __init__(self, message: str, details: Optional[Dict[str, Any]] = None):
|
||||
self.message = message
|
||||
self.details = details or {}
|
||||
super().__init__(self.message)
|
||||
|
||||
class DatabaseException(ROAException):
|
||||
"""Excepții legate de baza de date"""
|
||||
pass
|
||||
|
||||
class AuthenticationException(ROAException):
|
||||
"""Excepții legate de autentificare"""
|
||||
pass
|
||||
|
||||
class AuthorizationException(ROAException):
|
||||
"""Excepții legate de autorizare"""
|
||||
pass
|
||||
|
||||
class ValidationException(ROAException):
|
||||
"""Excepții legate de validare date"""
|
||||
pass
|
||||
Reference in New Issue
Block a user