Class MalwareDetectedException

  • All Implemented Interfaces:
    Serializable

    public final class MalwareDetectedException
    extends IOException
    Generic exception that is thrown when a file or some data was detected to contain malware.
    Since:
    7.0.13
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • MalwareDetectedException

        public MalwareDetectedException​(String message,
                                        Throwable cause)
        Creates a new exception with the given message and cause. Usually used when the malware scan could not be performed due to an unhandled error.
        Parameters:
        message - Error message describing the issue.
        cause - Root cause that prevented the malware scan.
      • MalwareDetectedException

        public MalwareDetectedException​(String message)
        Creates a new exception with the given message. Usually used when the malware scan was performed successfully, but resulted in the detection of some malware.
        Parameters:
        message - Error message describing the issue.
      • MalwareDetectedException

        public MalwareDetectedException​(Throwable cause)
        Creates a new exception with the given cause. Usually used when the malware scan could not be performed due to an unhandled error.
        Parameters:
        cause - Root cause that prevented the malware scan.