/*
- * Sone - FreenetTemplatePage.java - Copyright © 2010–2019 David Roden
+ * Sone - FreenetTemplatePage.kt - Copyright © 2010–2019 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/* do nothing. */
}
+ fun redirectTo(target: String?): Nothing =
+ throw RedirectException(target)
+
class RedirectException(val target: String?) : Exception() {
override fun toString(): String = format("RedirectException{target='%s'}", target)
}