public class DocumentFormatException
extends java.lang.RuntimeException
RecordFormatException
, except this is thrown when there's a higher order problem with parsing a document beyond individual records.
(这与 RecordFormatException 类似,除了在解析单个记录之外的文档时出现更高阶问题时抛出此异常。)
Constructor and Description |
---|
DocumentFormatException(java.lang.String exception) |
DocumentFormatException(java.lang.String exception, java.lang.Throwable thr) |
DocumentFormatException(java.lang.Throwable thr) |
Modifier and Type | Method and Description |
---|---|
static void |
check(boolean assertTrue, java.lang.String message)
Syntactic sugar to check whether a DocumentFormatException should be thrown.
(检查是否应抛出 DocumentFormatException 的语法糖。)
|
public DocumentFormatException(java.lang.String exception)
public DocumentFormatException(java.lang.String exception, java.lang.Throwable thr)
public DocumentFormatException(java.lang.Throwable thr)
public static void check(boolean assertTrue, java.lang.String message)
false
, this will throw this exception with the message.
(检查是否应抛出 DocumentFormatException 的语法糖。如果 assertTrue 为假,这将抛出此异常和消息。)
assertTrue
-
(断言真 -)
message
-
(信息 -)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.