Skip to content

Switch from AssertionError to IllegalStateException #264

@LBoraz

Description

@LBoraz

Is it possible to remove the AssertionErrors thrown by the Mailer, for example in case of empty MimeMessage body? I think it should be converted to an Exception. I understand what you are trying to do there, but as java applications normally don't catch Errors this leads applications to crash/fail for what it should really be a ValidationException (most likely recoverable, at least in my use-case).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions