AssertException.java :  » ERP-CRM-Financial » OpenXava-3.0 » org » openxava » util » Java Open Source

Java Open Source » ERP CRM Financial » OpenXava 3.0 
OpenXava 3.0 » org » openxava » util » AssertException.java
package org.openxava.util;

/**
 * Exception thrown when a assert is broken. <p>
 *
 * The break of a assert imply a programming error. Usually
 * this exception is not thrown directly but from 
 * {@link org.openxava.util.Assert} class.<br>
 * It si not mandatory throw this exception in case of programming error,
 * another possible exceptions are anothers <tt>RuntimeException</tt> associated
 * to the source problem, for example <tt>IndexOutOfBoundsException</tt>, 
 * <tt>IllegalArgumentException</tt> or the ominous <tt>NullPointerException</tt>. 
 * 
 * @author: Javier Paniza
 */
public class AssertException extends RuntimeException {
      
  public AssertException() {
    super(XavaResources.getString("assert_exception"));
  }

  public AssertException(String s) {
    super(s);
  }
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.