mirror of
https://github.com/fluencelabs/crypto
synced 2025-04-25 06:42:19 +00:00
Config refactoring (#61)
* Config refactoring * node running bug fixed * upnp config * test compilation bug fixed * ContractNodeIntegrationSpec fixed * rocksdb reference conf
This commit is contained in:
parent
65fe1184a8
commit
d88a5299e7
@ -23,9 +23,11 @@ import cats.data.EitherT
|
|||||||
import scala.language.higherKinds
|
import scala.language.higherKinds
|
||||||
import scala.util.control.{ NoStackTrace, NonFatal }
|
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
|
case class CryptoErr(errorMessage: String) extends Throwable(errorMessage) with NoStackTrace
|
||||||
|
|
||||||
object CryptoErr {
|
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] = {
|
def nonFatalHandling[F[_] : Applicative, A](a: ⇒ A)(errorText: String): EitherT[F, CryptoErr, A] = {
|
||||||
try EitherT.pure(a)
|
try EitherT.pure(a)
|
||||||
catch {
|
catch {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user