Added in API level 1
ParseException
open class ParseException : Exception
kotlin.Any | |||
↳ | kotlin.Throwable | ||
↳ | java.lang.Exception | ||
↳ | java.text.ParseException |
Signals that an error has been reached unexpectedly while parsing.
Summary
Public constructors | |
---|---|
ParseException(s: String!, errorOffset: Int) Constructs a ParseException with the specified detail message and offset. |
Public methods | |
---|---|
open Int |
Returns the position where the error was found. |
Public constructors
ParseException
Added in API level 1
ParseException(
s: String!,
errorOffset: Int)
Constructs a ParseException with the specified detail message and offset. A detail message is a String that describes this particular exception.
Parameters | |
---|---|
s |
String!: the detail message |
errorOffset |
Int: the position where the error is found while parsing. |
Public methods
getErrorOffset
Added in API level 1
open fun getErrorOffset(): Int
Returns the position where the error was found.
Return | |
---|---|
Int |
the position where the error was found |