|
Akka/Scala example source code file (AkkaException.scala)
The AkkaException.scala Akka example source code/** * Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> */ package akka /** * Akka base Exception. Each Exception gets: * <ul> * <li>a uuid for tracking purposes</li> * <li>toString that includes exception name, message and uuid</li> * </ul> */ @SerialVersionUID(1L) class AkkaException(message: String, cause: Throwable) extends RuntimeException(message, cause) with Serializable { def this(msg: String) = this(msg, null) } /** * Mix in this trait to suppress the StackTrace for the instance of the exception but not the cause, * scala.util.control.NoStackTrace suppresses all the StackTraces. */ trait OnlyCauseStackTrace { self: Throwable ⇒ override def fillInStackTrace(): Throwable = { setStackTrace(getCause match { case null ⇒ Array.empty case some ⇒ some.getStackTrace }) this } } /** * This exception is thrown when Akka detects a problem with the provided configuration */ class ConfigurationException(message: String, cause: Throwable) extends AkkaException(message, cause) { def this(msg: String) = this(msg, null) } Other Akka source code examplesHere is a short list of links related to this Akka AkkaException.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.