Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 45   Methods: 5
NCLOC: 23   Classes: 1
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover.
 
 Source file Conditionals Statements Methods TOTAL
XmlException.java - 33,3% 40% 36,4%
 1   
 /*
 2   
  * JBind
 3   
  *
 4   
  * Copyright (c) by Stefan Wachter. All rights reserved.
 5   
  *
 6   
  * Usage, modification, and redistribution is subject to license terms that are
 7   
  * available at 'http://www.jbind.org'. The JBind license is like the
 8   
  * 'Apache Software License V 1.1'.
 9   
  */
 10   
 package org.jbind.xml.msg;
 11   
 
 12   
 import org.jbind.message.IMessage;
 13   
 
 14   
 /**
 15   
  * Exception for all kinds of problems. For a description of the message concept
 16   
  * see the package comment of this package.
 17   
  */
 18   
 public class XmlException extends Exception {
 19   
 
 20   
   private IMessage myMessage = null;
 21   
 
 22  433
   public XmlException(IMessage aMessage) {
 23   
     assert null != aMessage : "missing message";
 24  433
     myMessage = aMessage;
 25   
   }
 26   
 
 27  0
   public XmlException(Exception anException, IMessage aMessage) {
 28  0
     super(anException);
 29   
     assert null != aMessage : "missing message";
 30  0
     myMessage = aMessage;
 31   
   }
 32   
 
 33  0
   public final String getMessage() {
 34  0
     return myMessage.output(null);
 35   
   }
 36   
 
 37  0
   public final String toString() {
 38  0
     return getMessage();
 39   
   }
 40   
 
 41  373
   public final IMessage getXmlMessage() {
 42  373
     return myMessage;
 43   
   }
 44   
 }
 45