Clover Coverage Report
Coverage timestamp: Sun Mar 23 2008 08:24:39 GMT
6   45   1   2
0   17   0.5   3
3     1  
1    
 
 
  ExceptionSAWSRecord       Line # 18 6 1 0% 0.0
 
No Tests
 
1    /*
2    * ExceptionSAWSRecord.java
3    *
4    * Created on 21 February 2007, 11:51
5    *
6    * To change this template, choose Tools | Template Manager
7    * and open the template in the editor.
8    */
9   
10   
11    package issrg.pba.rbac;
12   
13    import issrg.pba.*;
14    /**
15    *
16    * @author bn29
17    */
 
18    public class ExceptionSAWSRecord extends Record {
19   
20    /** Creates a new instance of ExceptionSAWSRecord */
21   
22    String exp;
23   
24    /**exception log record for saws
25    **/
 
26  0 toggle public ExceptionSAWSRecord(PbaException e){
27  0 type=SAWSLogLevelConstant.PermisExcepType;
28  0 this.exp=e.toString();
29    }
30   
 
31  0 toggle public ExceptionSAWSRecord(String exception){
32  0 type=SAWSLogLevelConstant.PermisExcepType;
33  0 this.exp=exception;
34    }
35   
36    /**returns the record as an array of bytes
37    */
 
38  0 toggle public byte[] toBytes(){
39  0 String result="Type: "+type+ exp;
40  0 return toBytes(result);
41    }
42   
43   
44   
45    }