Coverage Report - net.spy.digg.DiggException
 
Classes in this File Line Coverage Branch Coverage Complexity
DiggException
0%
0/11
N/A
1
 
 1  
 package net.spy.digg;
 2  
 
 3  
 /**
 4  
  * Exceptions getting stuff from digg.
 5  
  */
 6  
 public class DiggException extends Exception {
 7  
 
 8  0
         private int errorId=-1;
 9  
 
 10  
         public DiggException(String msg, Throwable t) {
 11  0
                 super(msg, t);
 12  0
         }
 13  
 
 14  
         public DiggException(String msg) {
 15  0
                 super(msg);
 16  0
         }
 17  
 
 18  
         public DiggException(Throwable t) {
 19  0
                 super(t);
 20  0
         }
 21  
 
 22  
         public DiggException(String msg, int eid) {
 23  0
                 super(msg + " (" + eid + ")");
 24  0
                 errorId=eid;
 25  0
         }
 26  
 
 27  
         /**
 28  
          * Get the error ID.
 29  
          */
 30  
         public int getErrorId() {
 31  0
                 return errorId;
 32  
         }
 33  
 }