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
27 lines
740 B
Python
27 lines
740 B
Python
"""
|
|
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 |