org.springframework.jee.validation
Class SpecificationViolation
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.springframework.jee.validation.SpecificationViolation
- All Implemented Interfaces:
- Serializable
public class SpecificationViolation
- extends Exception
Exception thrown when a specification violation is
found.
- Author:
- Rod Johnson
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
SpecificationViolation
public SpecificationViolation(String message,
Jsr250Metadata componentMetadata)
setCode
public void setCode(String code)
getCode
public String getCode()
- Returns:
- the code associated with the given specification
violation
getComponentMetadata
public Jsr250Metadata getComponentMetadata()
- Returns:
- the componentMetadata
Copyright © 2006-2008 SpringSource (formerly Interface21). All Rights Reserved.