@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class LDIFException extends IdentifiedException
Constructor and Description |
---|
LDIFException(LocalizableMessage message)
Creates a new LDIF exception with the provided information.
|
LDIFException(LocalizableMessage message,
Number lineNumber,
boolean canContinueReading)
Creates a new LDIF exception with the provided information.
|
LDIFException(LocalizableMessage message,
Number lineNumber,
boolean canContinueReading,
Throwable cause)
Creates a new configuration exception with the provided message and
underlying cause.
|
LDIFException(LocalizableMessage message,
Throwable cause)
Creates a new LDIF exception with the provided information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canContinueReading()
Indicates whether the nature of this exception allows the caller to
continue reading LDIF data.
|
long |
getLineNumber()
Retrieves the line number of the last line read from the LDIF source.
|
getMessageObject
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public LDIFException(LocalizableMessage message)
message
- The message to use for this LDIF exception.public LDIFException(LocalizableMessage message, Throwable cause)
message
- The message to use for this LDIF exception.cause
- The underlying cause that triggered this LDIF exception.public LDIFException(LocalizableMessage message, Number lineNumber, boolean canContinueReading)
message
- The message to use for this LDIF exception.lineNumber
- The line number of the last line read from the
LDIF source.canContinueReading
- Indicates whether it is possible to continue
reading from the LDIF input source.public LDIFException(LocalizableMessage message, Number lineNumber, boolean canContinueReading, Throwable cause)
message
- The message to use for this LDIF exception.canContinueReading
- Indicates whether it is possible to continue
reading from the LDIF input source.lineNumber
- The line number of the last line read from the
LDIF source.cause
- The underlying cause that triggered this LDIF
exception.public long getLineNumber()
public boolean canContinueReading()
false
,
then the associated reader should be closed by the caller.true
if the problem was with a single entry but it is
possible to continue reading with the next entry, or
false
if the problem was such that it is no longer
possible to continue reading the data.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.