类 IncorrectLineLengthException

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      intgetActualLength()
      Retrieves the actual length that was recorded for this exception.
      intgetExpectedLength()
      Retrieves the expected length that was recorded for this exception.
      • 从类继承的方法 java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 构造器详细资料

      • IncorrectLineLengthException

        public IncorrectLineLengthException​(java.lang.String message,
                                            int expectedLength,
                                            int actualLength,
                                            java.lang.String input)
        参数:
        message - the message for this exception.
        expectedLength - int containing the length that was expected.
        actualLength - int containing the actual length.
        input - the String that contained the contents that caused the exception to be thrown.
        从以下版本开始:
        2.2.6
      • IncorrectLineLengthException

        public IncorrectLineLengthException​(java.lang.String message,
                                            int expectedLength,
                                            int actualLength)
        参数:
        message - the message for this exception.
        expectedLength - int containing the length that was expected.
        actualLength - int containing the actual length.
      • IncorrectLineLengthException

        public IncorrectLineLengthException​(int expectedLength,
                                            int actualLength,
                                            java.lang.String input)
        参数:
        expectedLength - int containing the length that was expected.
        actualLength - int containing the actual length.
        input - the String that contained the contents that caused the exception to be thrown.
        从以下版本开始:
        2.2.6
      • IncorrectLineLengthException

        public IncorrectLineLengthException​(int expectedLength,
                                            int actualLength)
        参数:
        expectedLength - int containing the length that was expected.
        actualLength - int containing the actual length.
    • 方法详细资料

      • getActualLength

        public int getActualLength()
        Retrieves the actual length that was recorded for this exception.
        返回:
        int containing the actual length.
      • getExpectedLength

        public int getExpectedLength()
        Retrieves the expected length that was recorded for this exception.
        返回:
        int containing the expected length.