Interface JCatch

All Superinterfaces:
JBlock, JCommentable, JStatement, JTry
All Known Implementing Classes:
ImplJCatch

public interface JCatch extends JTry
A catch branch for a try block.
  • Method Details

    • or

      JCatch or(JType orType)
      Add another type option to this catch branch.
      Parameters:
      orType - the alternative type
      Returns:
      this catch block
    • or

      JCatch or(String orType)
      Add another type option to this catch branch.
      Parameters:
      orType - the alternative type
      Returns:
      this catch block
    • or

      JCatch or(Class<? extends Throwable> orType)
      Add another type option to this catch branch.
      Parameters:
      orType - the alternative type
      Returns:
      this catch block