All Downloads are FREE. Search and download functionalities are using the official Maven repository.

im.actor.server.webactions.WrongWebaction.scala Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package im.actor.server.webactions

import akka.actor.ActorSystem
import im.actor.api.rpc.collections.ApiMapValue

import scala.concurrent.Future

//MUST fail
class WrongWebaction(system: ActorSystem) extends Webaction(system) {
  val importantVal = 2 / 0

  override def uri(params: ApiMapValue): String = ""
  override def regex: String = ""
  override def complete(userId: Int, url: String): Future[WebactionResult] = Future.successful(Webaction.failure("", None))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy