It looks like there is no catch block for the TooMuchDataException specifically, so it will be caught in the general IOException catch in Session.java, which returns "421 4.4.0 Problem attempting to execute commands. Please try again later."
I believe this exception should translate either to 552 Requested mail action aborted: exceeded storage allocation or 452 Requested action not taken: insufficient system storage
Either that, or the Exception should simply be removed from the method signature. It is redundant as the method declares that it throws IOException anyway, and the implementation will need to throw a RejectException anyway if they want to have control over what error code is returned
It looks like there is no
catchblock for theTooMuchDataExceptionspecifically, so it will be caught in the generalIOExceptioncatch inSession.java, which returns"421 4.4.0 Problem attempting to execute commands. Please try again later."I believe this exception should translate either to
552 Requested mail action aborted: exceeded storage allocationor452 Requested action not taken: insufficient system storageEither that, or the Exception should simply be removed from the method signature. It is redundant as the method declares that it throws
IOExceptionanyway, and the implementation will need to throw aRejectExceptionanyway if they want to have control over what error code is returned