Android
java.net
public class

java.net.URISyntaxException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.net.URISyntaxException

Represents an exception that occurred during parsing of a URI.

Summary

Public Constructors

            URISyntaxException(String input, String reason, int index)
Constructs a URISyntaxException, containing the input that caused the exception, a description of the problem, and the index at which the error occurred.
            URISyntaxException(String input, String reason)
Constructs a URISyntaxException containing the string that caused the exception and a description of the error.

Public Methods

          int  getIndex()
Returns the index at which the syntax error was found, or -1 if the index is unknown/unavailable.
          String  getInput()
Returns the String that contained the syntax error
          String  getMessage()
Returns a description of the exception, including the reason, the string that had the syntax error, and the index of the syntax error if available.
          String  getReason()
Returns a String describing the syntax error in the URI string
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

Public Constructors

public URISyntaxException(String input, String reason, int index)

Constructs a URISyntaxException, containing the input that caused the exception, a description of the problem, and the index at which the error occurred.

Throws

NullPointerException if input or reason is null
IllegalArgumentException if index < -1

public URISyntaxException(String input, String reason)

Constructs a URISyntaxException containing the string that caused the exception and a description of the error.

Throws

NullPointerException if input or reason is null

Public Methods

public int getIndex()

Returns the index at which the syntax error was found, or -1 if the index is unknown/unavailable.

Returns

  • the index of the syntax error

public String getInput()

Returns the String that contained the syntax error

Returns

  • the String that caused the exception

public String getMessage()

Returns a description of the exception, including the reason, the string that had the syntax error, and the index of the syntax error if available.

Returns

  • a String containing information about the exception.

See Also

public String getReason()

Returns a String describing the syntax error in the URI string

Returns

  • a String describing the syntax error
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48