tuxmartin

Vyjimka ve vyjimce

Aug 31st, 2014
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. public class TestVyjimka {
  2.    
  3.     public static void main(String[] args) {
  4.         if (true) {
  5.             try {
  6.                 throw new WTFException();
  7.             } catch (WTFException e) {
  8.                 e.printStackTrace();
  9.             }
  10.         }
  11.  
  12.     }
  13. }
  14.  
  15.  
  16. public class WTFException extends Exception {
  17.    
  18.     public WTFException() {
  19.         super();
  20.     }
  21.  
  22.     public WTFException(String message) {
  23.         super(message);
  24.     }
  25.  
  26.     public WTFException(String message, Throwable cause) {
  27.         super(message, cause);
  28.     }
  29.  
  30.     public WTFException(Throwable cause) {
  31.         super(cause);
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment