Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
c

LiveNotFound

class LiveNotFound(reason: String) extends RuntimeException

Fails a root LiveView's mount or handleParams when what its URL names does not exist.

A page request answers 404 Not Found with the router's LiveErrorPage, or with the bare status without one. When the LiveView fails while joining, as after live navigation, the browser reloads the page and that request answers the same 404. reason is logged at debug level and never sent to the browser.

scala
patients.find(id).someOrFail(LiveNotFound(s"patient $id"))

Parameters

reason

What was not found, for the log.

Defined by scalive.LiveNotFound. View source (scalive/api/src/scalive/LiveNotFound.scala:17-17)

Values1

reason

val reason: String

What was not found, for the log.

Defined by scalive.LiveNotFound.reason. View source (scalive/api/src/scalive/LiveNotFound.scala:17-17)