public class NoSingleSectionException extends HPSFRuntimeException
This exception is thrown if one of the PropertySet
's convenience methods that require a single Section
is called and the PropertySet
does not contain exactly one Section
.
The constructors of this class are analogous to those of its superclass and documented there.
(如果调用了需要单个 Section 的 PropertySet 便利方法之一并且 PropertySet 不完全包含一个 Section,则会引发此异常。此类的构造函数类似于其超类的构造函数,并记录在那里。)Constructor and Description |
---|
NoSingleSectionException()
Constructor
|
NoSingleSectionException(java.lang.String msg)
Constructor
|
NoSingleSectionException(java.lang.String msg, java.lang.Throwable reason)
Constructor
|
NoSingleSectionException(java.lang.Throwable reason)
Constructor
|
getReason
public NoSingleSectionException()
Constructor
(构造函数)public NoSingleSectionException(java.lang.String msg)
Constructor
(构造函数)msg
- The exception's message string
(msg - 异常的消息字符串)
public NoSingleSectionException(java.lang.Throwable reason)
Constructor
(构造函数)reason
- This exception's underlying reason
(reason - 此异常的根本原因)
public NoSingleSectionException(java.lang.String msg, java.lang.Throwable reason)
Constructor
(构造函数)msg
- The exception's message string
(msg - 异常的消息字符串)
reason
- This exception's underlying reason
(reason - 此异常的根本原因)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.