<commit_before>/*
 * Copyright (c) 2007, <NAME> & <NAME>
 *
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *  * Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 *
 *  * Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 *  * Neither the name of JSR-310 nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
package javax.time.calendar;

/**
 * An exception used when a value specified for a calendar field is invalid.
 *
 * @author <NAME>
 */
public class IllegalCalendarFieldValueException extends IllegalArgumentException {

    /**
     * Constructs a new illegal field value exception with no message.
     *
     * @param fieldName  the field name, not null
     * @param actual  the actual invalid value, not null
     * @param minValue  the minimum value allowed
     * @param maxValue  the maximum value allowed
     */
    public IllegalCalendarFieldValueException(String fieldName, int actual, int minValue, int maxValue) {
        super("Illegal value for " + fieldName + " field, value " + actual +
                " is not in the range " + minValue + " to " + maxValue);
    }

    /**
     * Constructs a new illegal field value exception with no message.
     *
     * @param fieldName  the field name, not null
     * @param actual  the actual invalid value, not null
     * @param minValue  the minimum value allowed
     * @param maxValue  the maximum value allowed
     */
    public IllegalCalendarFieldValueException(String fieldName, long actual, int minValue, int maxValue) {
        super("Illegal value for " + fieldName + " field, value " + actual +
                " is not in the range " + minValue + " to " + maxValue);
    }

    /**
     * Constructs a new illegal field value exception with the specified message.
     *
     * @param message  the message to use for this exception, may be null
     */
    public IllegalCalendarFieldValueException(String message) {
        super(message);
    }

//    /**
//     * Constructs a new illegal field value exception with the specified message and cause.
//     *
//     * @param message  the message to use for this exception, may be null
//     * @param cause  the underlying cause of this exception, may be null
//     */
//    public IllegalCalendarFieldValueException(String message, Throwable cause) {
//        super(message, cause);
//    }
//
//    /**
//     * Constructs a new illegal field value exception with the specified cause,
//     * extracting the message from the cause if possible.
//     *
//     * @param cause  the underlying cause of this exception, may be null
//     */
//    public IllegalCalendarFieldValueException(Throwable cause) {
//        super(cause);
//    }

}
<commit_msg>Unused method removed<commit_after>/*
 * Copyright (c) 2007, <NAME> & <NAME>
 *
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *  * Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 *
 *  * Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 *  * Neither the name of JSR-310 nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
package javax.time.calendar;

/**
 * An exception used when a value specified for a calendar field is invalid.
 *
 * @author <NAME>
 */
public class IllegalCalendarFieldValueException extends IllegalArgumentException {

    /**
     * Constructs a new illegal field value exception with no message.
     *
     * @param fieldName  the field name, not null
     * @param actual  the actual invalid value, not null
     * @param minValue  the minimum value allowed
     * @param maxValue  the maximum value allowed
     */
    public IllegalCalendarFieldValueException(String fieldName, int actual, int minValue, int maxValue) {
        super("Illegal value for " + fieldName + " field, value " + actual +
                " is not in the range " + minValue + " to " + maxValue);
    }

//    /**
//     * Constructs a new illegal field value exception with no message.
//     *
//     * @param fieldName  the field name, not null
//     * @param actual  the actual invalid value, not null
//     * @param minValue  the minimum value allowed
//     * @param maxValue  the maximum value allowed
//     */
//    public IllegalCalendarFieldValueException(String fieldName, long actual, int minValue, int maxValue) {
//        super("Illegal value for " + fieldName + " field, value " + actual +
//                " is not in the range " + minValue + " to " + maxValue);
//    }
//
    /**
     * Constructs a new illegal field value exception with the specified message.
     *
     * @param message  the message to use for this exception, may be null
     */
    public IllegalCalendarFieldValueException(String message) {
        super(message);
    }

//    /**
//     * Constructs a new illegal field value exception with the specified message and cause.
//     *
//     * @param message  the message to use for this exception, may be null
//     * @param cause  the underlying cause of this exception, may be null
//     */
//    public IllegalCalendarFieldValueException(String message, Throwable cause) {
//        super(message, cause);
//    }
//
//    /**
//     * Constructs a new illegal field value exception with the specified cause,
//     * extracting the message from the cause if possible.
//     *
//     * @param cause  the underlying cause of this exception, may be null
//     */
//    public IllegalCalendarFieldValueException(Throwable cause) {
//        super(cause);
//    }

}

{'fraction_non_alphanumeric': 0.07363013698630137, 'fraction_numerical': 0.0017123287671232876, 'mean_word_length': 2.711756695415343, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5219370', 'n_tokens_mistral': 2149, 'n_tokens_neox': 1987, 'n_words': 938}