public final class ErrorCollectorImpl extends java.lang.Object implements ErrorCollector
ErrorCollector実装クラス。| Constructor and Description |
|---|
ErrorCollectorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ContainerException exception)
バリデーションエラーを追加する。
|
void |
ignore(java.lang.Class<? extends ContainerException> ignoreMe)
ErrorCollector.throwExceptionIfExistsError()で無視をする例外クラスを設定する。 |
void |
throwExceptionIfExistsError()
追加されたバリデーションエラーがあれば、
それらを
ContainerCreationExceptionでラップしてスローする。 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewInstance, wrappublic void add(ContainerException exception)
ErrorCollectoradd in interface ErrorCollectorexception - バリデーションエラーpublic void ignore(java.lang.Class<? extends ContainerException> ignoreMe)
ErrorCollectorErrorCollector.throwExceptionIfExistsError()で無視をする例外クラスを設定する。ignore in interface ErrorCollectorignoreMe - 無視される例外クラスpublic void throwExceptionIfExistsError()
ErrorCollectorContainerCreationExceptionでラップしてスローする。
バリデーションエラーがなければ何もしない。
throwExceptionIfExistsError in interface ErrorCollector