All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.progrm_jarvis.javacommons.primitive.error.IntegerParseError Maven / Gradle / Ivy

package ru.progrm_jarvis.javacommons.primitive.error;

/**
 * An error occurring while parsing an integer (e.g. an {@code int}).
 */
public enum IntegerParseError {
    /**
     * Parsed expression contains no digits at all.
     */
    EMPTY,
    /**
     * Parsed expression contains only a sign (i.e. {@code '+'} or {@code '-'}).
     */
    ONLY_SIGN,
    /**
     * Parsed expression contains an invalid character.
     */
    INVALID_CHARACTER,
    /**
     * Parsed expression represents a number which is out of resulting type's bounds.
     */
    OUT_OF_BOUNDS
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy