org.glassfish.jersey.server.model
Class ModelValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.glassfish.jersey.server.model.ModelValidationException
All Implemented Interfaces:
Serializable

public class ModelValidationException
extends RuntimeException

Resource model validation exception. Indicates the issues with the model.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com), Marek Potociar (marek.potociar at oracle.com)
See Also:
Serialized Form

Constructor Summary
ModelValidationException(String message, List<ResourceModelIssue> issues)
          Creates new resource model validation exception with the list of validation issues and the message.
 
Method Summary
 List<ResourceModelIssue> getIssues()
          Get validation issues.
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelValidationException

public ModelValidationException(String message,
                                List<ResourceModelIssue> issues)
Creates new resource model validation exception with the list of validation issues and the message.

Parameters:
message - message for the exception. The final message returned by getMessage() will contains the message and other information about exception.
issues - validation issues.
Method Detail

getIssues

public List<ResourceModelIssue> getIssues()
Get validation issues.

Returns:
validation issues.

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.