protected int indexOfSupported ( DateTimeFieldType type ) { int index = indexOf ( type ) ; if ( index == - 1 ) { throw new IllegalArgumentException ( "Field '" + type + "' is not supported" ) ; } return index ; }
Gets the index of the specified field throwing an exception if the field is unsupported .