<commit_before>/*
 * Copyright 2015 52°North Initiative for Geospatial Open Source
 * Software GmbH
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.n52.iceland.exception.ows.concrete;

import static org.n52.iceland.util.http.HTTPStatus.BAD_REQUEST;

import org.joda.time.DateTime;
import org.n52.iceland.ogc.gml.time.Time;

/**
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @author <a href="mailto:<EMAIL>"><NAME>
 *         J&uuml;rrens</a>
 *
 * @since 1.0.0
 */
public class DateTimeFormatException extends DateTimeException {
    private static final long serialVersionUID = 4594521785170898431L;

    public DateTimeFormatException(final Time value) {
        this(value, null);
    }

    public DateTimeFormatException(final Time value, final Throwable cause) {
        withMessage("Error formatting Time %s", value);
        if (cause != null) {
            causedBy(cause);
        }
        setStatus(BAD_REQUEST);
    }

    public DateTimeFormatException(final DateTime value) {
        this(value, null);
    }

    public DateTimeFormatException(final DateTime value, final Throwable cause) {
        withMessage("Error formatting DateTime %s", value);
        if (cause != null) {
            causedBy(cause);
        }
        setStatus(BAD_REQUEST);
    }
}<commit_msg>Update exception message<commit_after>/*
 * Copyright 2015 52°North Initiative for Geospatial Open Source
 * Software GmbH
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.n52.iceland.exception.ows.concrete;

import static org.n52.iceland.util.http.HTTPStatus.BAD_REQUEST;

import org.joda.time.DateTime;
import org.n52.iceland.ogc.gml.time.Time;

/**
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @author <a href="mailto:<EMAIL>"><NAME>
 *         J&uuml;rrens</a>
 *
 * @since 1.0.0
 */
public class DateTimeFormatException extends DateTimeException {
    private static final long serialVersionUID = 4594521785170898431L;

    public DateTimeFormatException(final Time value) {
        this(value, null);
    }

    public DateTimeFormatException(final Time value, final Throwable cause) {
        withMessage("Error formatting %s %s", value.getClass().getSimpleName(), value);
        if (cause != null) {
            causedBy(cause);
        }
        setStatus(BAD_REQUEST);
    }

    public DateTimeFormatException(final DateTime value) {
        this(value, null);
    }

    public DateTimeFormatException(final DateTime value, final Throwable cause) {
        withMessage("Error formatting %s %s", value.getClass().getSimpleName(), value);
        if (cause != null) {
            causedBy(cause);
        }
        setStatus(BAD_REQUEST);
    }
}
{'fraction_non_alphanumeric': 0.10213455822750608, 'fraction_numerical': 0.02053499054309646, 'mean_word_length': 3.3501762632197414, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3320409', 'n_tokens_mistral': 1097, 'n_tokens_neox': 1023, 'n_words': 332}