|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.opends.server.types.OpenDsException
org.opends.server.types.IdentifiedException
org.opends.server.util.LDIFException
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class LDIFException
This class defines an exception that may be thrown while attempting to parse LDIF content.
Constructor Summary | |
---|---|
LDIFException(Message message)
Creates a new LDIF exception with the provided information. |
|
LDIFException(Message message,
long lineNumber,
boolean canContinueReading)
Creates a new LDIF exception with the provided information. |
|
LDIFException(Message message,
long lineNumber,
boolean canContinueReading,
java.lang.Throwable cause)
Creates a new configuration exception with the provided message and underlying cause. |
|
LDIFException(Message message,
java.lang.Throwable cause)
Creates a new LDIF exception with the provided information. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.opends.server.types.OpenDsException |
---|
getMessageObject |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LDIFException(Message message)
message
- The message to use for this LDIF exception.public LDIFException(Message message, java.lang.Throwable cause)
message
- The message to use for this LDIF exception.cause
- The underlying cause that triggered this LDIF exception.public LDIFException(Message message, long 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(Message message, long lineNumber, boolean canContinueReading, java.lang.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.Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |