org.springframework.jee.validation
Class SpecificationViolation

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.springframework.jee.validation.SpecificationViolation
All Implemented Interfaces:
java.io.Serializable

public class SpecificationViolation
extends java.lang.Exception

Exception thrown when a specification violation is found.

Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
SpecificationViolation(java.lang.String message, Jsr250Metadata componentMetadata)
           
 
Method Summary
 java.lang.String getCode()
           
 Jsr250Metadata getComponentMetadata()
           
 void setCode(java.lang.String code)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

SpecificationViolation

public SpecificationViolation(java.lang.String message,
                              Jsr250Metadata componentMetadata)
Method Detail

setCode

public void setCode(java.lang.String code)

getCode

public java.lang.String getCode()
Returns:
the code associated with the given specification violation

getComponentMetadata

public Jsr250Metadata getComponentMetadata()
Returns:
the componentMetadata


Copyright 2006 Interface21. All Rights Reserved.