Class ThrowsClause


  • public class ThrowsClause
    extends Object
    Represents an expected exception in a throws-condition.
    • Field Detail

      • comment

        private final String comment
        The descriptive text for this exception.
    • Constructor Detail

      • ThrowsClause

        ThrowsClause​(ClassOrInterfaceType exceptionType,
                     String comment)
        Creates a ThrowsClause object with the given type, and comment.
        Parameters:
        exceptionType - the type of the expected exception
        comment - the text description of the throws clause