[JAVA] Punkt 75: Fügen Sie Fehlererfassungsinformationen in Detailnachrichten ein

75. Fügen Sie Fehlerprotokollinformationen in die detaillierte Nachricht ein

    /**
     * Constructs a new {@code IndexOutOfBoundsException} class with an
     * argument indicating the illegal index.
     *
     * <p>The index is included in this exception's detail message.  The
     * exact presentation format of the detail message is unspecified.
     *
     * @param index the illegal index.
     * @since 9
     */
    public IndexOutOfBoundsException(int index) {
        super("Index out of range: " + index);
    }

Recommended Posts

Punkt 75: Fügen Sie Fehlererfassungsinformationen in Detailnachrichten ein
Maskieren Sie vertrauliche Informationen in Protokollnachrichten mit Logback