private static void violation ( JMFType from , JMFType to ) throws JMFSchemaViolationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) JmfTr . debug ( tc , "Violation:" + " from = " + from . getFeatureName ( ) + " : " + from + ", to = " + to . getFeatureName ( ) + " : " + to ) ; throw new JMFSchemaViolationException ( from . getFeatureName ( ) + " not compatible with " + to . getFeatureName ( ) ) ; }
Handle violation of the compatibility rules by throwing an informative exception