feat: add be changes for captain pdf support for faq generation

This commit is contained in:
Tanmay Deep Sharma
2025-08-06 12:22:20 +05:30
parent 51b9fd8eca
commit 7317b95441
15 changed files with 555 additions and 14 deletions
@@ -0,0 +1,23 @@
class PdfProcessingError < CustomExceptions::Base
def initialize(message = 'PDF processing failed')
super(message)
end
end
class PdfUploadError < PdfProcessingError
def initialize(message = 'PDF upload failed')
super(message)
end
end
class PdfValidationError < PdfProcessingError
def initialize(message = 'PDF validation failed')
super(message)
end
end
class PdfFaqGenerationError < PdfProcessingError
def initialize(message = 'PDF FAQ generation failed')
super(message)
end
end