private void validateTimeToLive ( long timeToLive ) throws JMSException { if ( ( timeToLive < 0 ) || ( timeToLive > MfpConstants . MAX_TIME_TO_LIVE ) ) { throw ( JMSException ) JmsErrorUtils . newThrowable ( JMSException . class , "INVALID_VALUE_CWSIA0068" , new Object [ ] { "timeToLive" , "" + timeToLive } , tc ) ; } }
Validates the timeToLive field and throws an exception if there is a problem .