Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
o

LiveMountFailure

object LiveMountFailure

Constructors for connected mount failures.

Defined by scalive.LiveMountFailure. View source (scalive/api/src/scalive/LiveMountAspect.scala:47-82)

Methods4

redirect

def redirect(to: LiveLocation): LiveMountFailure

Redirects connected mount to a typed Live route location.

Defined by scalive.LiveMountFailure.redirect. View source (scalive/api/src/scalive/LiveMountAspect.scala:49-50)

redirectUnsafe

def redirectUnsafe(to: zio.http.URL): LiveMountFailure

Redirects connected mount to an unchecked URL.

This is an escape hatch for destinations that cannot be represented by LiveLocation. It does not validate origin or locality and can create an open redirect when given untrusted input.

Defined by scalive.LiveMountFailure.redirectUnsafe. View source (scalive/api/src/scalive/LiveMountAspect.scala:58-59)

stale

def stale(reason: String): LiveMountFailure

Rejects connected mount as stale and logs reason server-side.

The reason is not included in the socket reply.

Defined by scalive.LiveMountFailure.stale. View source (scalive/api/src/scalive/LiveMountAspect.scala:80-81)

def stale: LiveMountFailure

Rejects connected mount as stale without logging an application reason.

Defined by scalive.LiveMountFailure.stale. View source (scalive/api/src/scalive/LiveMountAspect.scala:73-74)

unauthorized

def unauthorized(reason: String): LiveMountFailure

Rejects connected mount as unauthorized and logs reason server-side.

The reason is not included in the socket reply.

Defined by scalive.LiveMountFailure.unauthorized. View source (scalive/api/src/scalive/LiveMountAspect.scala:69-70)

def unauthorized: LiveMountFailure

Rejects connected mount as unauthorized without logging an application reason.

Defined by scalive.LiveMountFailure.unauthorized. View source (scalive/api/src/scalive/LiveMountAspect.scala:62-63)