public class RecordFormatException
extends java.lang.RuntimeException
Constructor and Description |
---|
RecordFormatException(java.lang.String exception) |
RecordFormatException(java.lang.String exception, java.lang.Throwable thr) |
RecordFormatException(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 RecordFormatException should be thrown.
(检查是否应抛出 RecordFormatException 的语法糖。)
|
public RecordFormatException(java.lang.String exception)
public RecordFormatException(java.lang.String exception, java.lang.Throwable thr)
public RecordFormatException(java.lang.Throwable thr)
public static void check(boolean assertTrue, java.lang.String message)
false
, this will throw this exception with the message.
(检查是否应抛出 RecordFormatException 的语法糖。如果 assertTrue 为假,这将抛出此异常和消息。)
assertTrue
- If false, the exception is thrown, if true, no action is performed
(assertTrue - 如果为 false,则抛出异常,如果为 true,则不执行任何操作)
message
- The message to include in the thrown exception
(message - 要包含在抛出的异常中的消息)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.