Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 446 Bytes
/*
* Copyright (C) 2009-2016 Lightbend Inc. <https://www.lightbend.com>
*/
package play.api
/**
* Generic exception for unexpected error cases.
*/
case class UnexpectedException(message: Option[String] = None, unexpected: Option[Throwable] = None) extends PlayException(
"Unexpected exception",
message.getOrElse {
unexpected.map(t => "%s: %s".format(t.getClass.getSimpleName, t.getMessage)).getOrElse("")
},
unexpected.orNull
)
Something went wrong with that request. Please try again.