self review changes

This commit is contained in:
Tanmay Deep Sharma
2025-08-20 23:49:29 +05:30
parent ba5ae0dfd9
commit 0f82b11128
13 changed files with 395 additions and 927 deletions
+17 -15
View File
@@ -1,23 +1,25 @@
class PdfProcessingError < CustomExceptions::Base
def initialize(message = 'PDF processing failed')
super(message)
module CustomExceptions
class PdfProcessingError < Base
def initialize(message = 'PDF processing failed')
super(message)
end
end
end
class PdfUploadError < PdfProcessingError
def initialize(message = 'PDF upload failed')
super(message)
class PdfUploadError < PdfProcessingError
def initialize(message = 'PDF upload failed')
super(message)
end
end
end
class PdfValidationError < PdfProcessingError
def initialize(message = 'PDF validation failed')
super(message)
class PdfValidationError < PdfProcessingError
def initialize(message = 'PDF validation failed')
super(message)
end
end
end
class PdfFaqGenerationError < PdfProcessingError
def initialize(message = 'PDF FAQ generation failed')
super(message)
class PdfFaqGenerationError < PdfProcessingError
def initialize(message = 'PDF FAQ generation failed')
super(message)
end
end
end