summaryrefslogtreecommitdiff
path: root/javalib/src/main/scala/java/net/URISyntaxException.scala
blob: 85e0879078cc1c8bbdc0597bafb24707183c1842 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package java.net

class URISyntaxException(
  private val input: String,
  private val reason: String,
  private val index: Int) extends Exception(
  s"$reason in $input at $index") {

  def this(input: String, reason: String) = this(input, reason, -1)

  def getIndex(): Int = index
  def getInput(): String = input
  def getReason(): String = reason

}