View Javadoc

1   // -- FILE ------------------------------------------------------------------
2   // name       : ValidationException.java
3   // project    : Panter: LI
4   // created    : lep - 2007.02.07
5   // language   : java
6   // environment: JDK 1.5.0
7   // copyright  : (c) 2006 by Panter llc, Switzerland
8   // license    : this is free software licensed under the GPL. see COPYING
9   // --------------------------------------------------------------------------
10  package ch.panter.li.bi.asn.api;
11  
12  
13  /** An exception that gets thrown when there are unresolved validation items. */
14  public class ValidationException extends Exception
15  {
16  
17    /** Creates a new instance with the given info.
18     @param info the info
19     */
20    public ValidationException( final ValidationInfo info )
21    {
22      this.info = info;
23    } // ValidationException
24  
25    public final ValidationInfo getInfo()
26    {
27      return info;
28    } // getInfo
29  
30    public String getMessage()
31    {
32      return "" + info;
33    } // getMessage
34  
35    // members
36    private final ValidationInfo info;
37  
38  } // class ValidationException
39  
40  // -- EOF -------------------------------------------------------------------