From d88a5299e79389fa418f0ed395273a8fe9892a10 Mon Sep 17 00:00:00 2001 From: Dmitry Kurinskiy Date: Thu, 22 Feb 2018 15:15:50 +0300 Subject: [PATCH] Config refactoring (#61) * Config refactoring * node running bug fixed * upnp config * test compilation bug fixed * ContractNodeIntegrationSpec fixed * rocksdb reference conf --- src/main/scala/fluence/crypto/algorithm/CryptoErr.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/scala/fluence/crypto/algorithm/CryptoErr.scala b/src/main/scala/fluence/crypto/algorithm/CryptoErr.scala index ba43553..63a3606 100644 --- a/src/main/scala/fluence/crypto/algorithm/CryptoErr.scala +++ b/src/main/scala/fluence/crypto/algorithm/CryptoErr.scala @@ -23,9 +23,11 @@ import cats.data.EitherT import scala.language.higherKinds import scala.util.control.{ NoStackTrace, NonFatal } +@deprecated("Use co-fail's CryptoErr instead", "21.02.2018") case class CryptoErr(errorMessage: String) extends Throwable(errorMessage) with NoStackTrace object CryptoErr { + @deprecated("Use co-fail's CryptoErr.catchNonFatal instead", "21.02.2018") def nonFatalHandling[F[_] : Applicative, A](a: ⇒ A)(errorText: String): EitherT[F, CryptoErr, A] = { try EitherT.pure(a) catch {