< prev index next >

src/java.xml.bind/share/classes/javax/xml/bind/ValidationException.java

Print this page




  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.xml.bind;
  27 
  28 /**
  29  * This exception indicates that an error has occurred while performing
  30  * a validate operation.
  31  *
  32  * <p>
  33  * The <tt>ValidationEventHandler</tt> can cause this exception to be thrown
  34  * during the validate operations.  See
  35  * {@link ValidationEventHandler#handleEvent(ValidationEvent)
  36  * ValidationEventHandler.handleEvent(ValidationEvent)}.
  37  *
  38  * @author <ul><li>Ryan Shoemaker, Sun Microsystems, Inc.</li></ul>
  39  * @see JAXBException
  40  * @see Validator
  41  * @since 1.6, JAXB 1.0
  42  */
  43 public class ValidationException extends JAXBException {
  44 
  45     /**
  46      * Construct an ValidationException with the specified detail message.  The
  47      * errorCode and linkedException will default to null.
  48      *
  49      * @param message a description of the exception
  50      */
  51     public ValidationException(String message) {
  52         this( message, null, null );
  53     }




  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.xml.bind;
  27 
  28 /**
  29  * This exception indicates that an error has occurred while performing
  30  * a validate operation.
  31  *
  32  * <p>
  33  * The {@code ValidationEventHandler} can cause this exception to be thrown
  34  * during the validate operations.  See
  35  * {@link ValidationEventHandler#handleEvent(ValidationEvent)
  36  * ValidationEventHandler.handleEvent(ValidationEvent)}.
  37  *
  38  * @author <ul><li>Ryan Shoemaker, Sun Microsystems, Inc.</li></ul>
  39  * @see JAXBException
  40  * @see Validator
  41  * @since 1.6, JAXB 1.0
  42  */
  43 public class ValidationException extends JAXBException {
  44 
  45     /**
  46      * Construct an ValidationException with the specified detail message.  The
  47      * errorCode and linkedException will default to null.
  48      *
  49      * @param message a description of the exception
  50      */
  51     public ValidationException(String message) {
  52         this( message, null, null );
  53     }


< prev index next >