

class MalformedFileError(Exception):
    """Error raised when the file is not well formatted"""


class MalformedCaptionError(Exception):
    """Error raised when a caption is not well formatted"""



class MalformedFileError(Exception):
    """Error raised when the file is not well formatted"""


class MalformedCaptionError(Exception):
    """Error raised when a caption is not well formatted"""


class InvalidCaptionsError(Exception):
    """Error raised when passing wrong captions to the segmenter"""
Add exception for invalid captions
Add exception for invalid captions

  
  
  class MalformedFileError(Exception):
      """Error raised when the file is not well formatted"""
  
  
  class MalformedCaptionError(Exception):
      """Error raised when a caption is not well formatted"""
  
+ 
+ class InvalidCaptionsError(Exception):
+     """Error raised when passing wrong captions to the segmenter"""
Add exception for invalid captions
## Code Before:


class MalformedFileError(Exception):
    """Error raised when the file is not well formatted"""


class MalformedCaptionError(Exception):
    """Error raised when a caption is not well formatted"""

## Instruction:
Add exception for invalid captions
## Code After:


class MalformedFileError(Exception):
    """Error raised when the file is not well formatted"""


class MalformedCaptionError(Exception):
    """Error raised when a caption is not well formatted"""


class InvalidCaptionsError(Exception):
    """Error raised when passing wrong captions to the segmenter"""