public class PlistReaderException extends Exception
Title: PlistReade PlistReaderExceptionr
Description: Package to read and write PLIST files on OsX
Copyright: 2007, Gie Spaepen
Company: University of Antwerp
This package contains the possible errors which can be generated during
the parsing process. These errors can be called by using the static
fields of this class which are in turn also PlistReaderException
objects.
Modifier and Type | Field and Description |
---|---|
static PlistReaderException |
CANNOT_READ_FILE
Called when IO problems are encountered for opening the file.
|
static PlistReaderException |
IO_EXCEPTION_READ
This is thrown when the library can't read a file.
|
static PlistReaderException |
IO_EXCEPTION_WRITE
This is thrown when the library can't write to a file.
|
static PlistReaderException |
NO_ARGUMENTS
This error is thrown when no argument is specified when starting the
test program
plistreader.test.testReader . |
static PlistReaderException |
NO_FILE_SPECIFIED
Used by the
AbstractReader and the AbstractWriter
when no file is specified. |
static PlistReaderException |
NO_PARSER_AVAILABLE
This error is called when the parser can't be instantiated.
|
static PlistReaderException |
NO_PROPERTIES_SPECIFIED
Used by the
AbstractReader and the AbstractWriter
when no PlistProperties object is specified. |
static PlistReaderException |
NON_EXISTING_KEY
Called when the search for a given key in a
PlistProperties
object fails. |
static PlistReaderException |
PARAMETER_NOT_CORRECT
Used in the same situation as the
SECURITY_ERROR error but
now if the program tries to invoke a wrong method. |
static PlistReaderException |
SECURITY_ERROR
The
list functions of a PlistProperties object
use instances of java.lang.reflect.Method which can cause
security issues. |
static PlistReaderException |
WRONG_ASSIGNMENT
This function is also called during parsing.
|
static PlistReaderException |
WRONG_DATE_FORMAT
Dateformat of the
<date> must be formatted according
the PLIST and NSDate specifications:
yyyy-MM-dd'T'hh:mm:ss'Z' . |
static PlistReaderException |
WRONG_NESTED_ARRAY
When a
PLIST file is wrongly formatted and some
closing tags are missing, for example, this error will probably be called
because the program tries to match an array with a Vector . |
static PlistReaderException |
WRONG_NESTED_DICTIONARY
Similar as
WRONG_NESTED_ARRAY . |
Constructor and Description |
---|
PlistReaderException(String _string)
Use this constructor to make a custom
PlistReaderException . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static PlistReaderException CANNOT_READ_FILE
public static PlistReaderException WRONG_DATE_FORMAT
<date>
must be formatted according
the PLIST
and NSDate
specifications:
yyyy-MM-dd'T'hh:mm:ss'Z'
.public static PlistReaderException NO_ARGUMENTS
plistreader.test.testReader
.public static PlistReaderException NO_PARSER_AVAILABLE
public static PlistReaderException IO_EXCEPTION_READ
public static PlistReaderException IO_EXCEPTION_WRITE
public static PlistReaderException WRONG_NESTED_ARRAY
PLIST
file is wrongly formatted and some
closing tags are missing, for example, this error will probably be called
because the program tries to match an array with a Vector
.
Alwas called during parsing.public static PlistReaderException WRONG_NESTED_DICTIONARY
WRONG_NESTED_ARRAY
.WRONG_NESTED_ARRAY
public static PlistReaderException WRONG_ASSIGNMENT
PlistProperties
,
then this error is called.public static PlistReaderException NON_EXISTING_KEY
PlistProperties
object fails.public static PlistReaderException SECURITY_ERROR
list
functions of a PlistProperties
object
use instances of java.lang.reflect.Method
which can cause
security issues.public static PlistReaderException PARAMETER_NOT_CORRECT
SECURITY_ERROR
error but
now if the program tries to invoke a wrong method.public static PlistReaderException NO_FILE_SPECIFIED
AbstractReader
and the AbstractWriter
when no file is specified.public static PlistReaderException NO_PROPERTIES_SPECIFIED
AbstractReader
and the AbstractWriter
when no PlistProperties
object is specified.public PlistReaderException(String _string)
PlistReaderException
._string
- String