From 55bcf295eed61a087f9bac4b2924d94fa66ca1a4 Mon Sep 17 00:00:00 2001 From: Andrzej Cichocki Date: Thu, 16 Nov 2017 14:40:39 +0000 Subject: [PATCH] Move class to the only place that uses it. (#2067) --- node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt | 1 + node/src/main/kotlin/net/corda/node/internal/Node.kt | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt b/node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt index dc86253897..e0122433bb 100644 --- a/node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt +++ b/node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt @@ -774,6 +774,7 @@ internal class FlowStarterImpl(private val serverThread: AffinityExecutor, priva } } +class ConfigurationException(message: String) : CordaException(message) /** * Thrown when a node is about to start and its network map cache doesn't contain any node. */ diff --git a/node/src/main/kotlin/net/corda/node/internal/Node.kt b/node/src/main/kotlin/net/corda/node/internal/Node.kt index 837c7ad133..6f0f5aca60 100644 --- a/node/src/main/kotlin/net/corda/node/internal/Node.kt +++ b/node/src/main/kotlin/net/corda/node/internal/Node.kt @@ -1,7 +1,6 @@ package net.corda.node.internal import com.codahale.metrics.JmxReporter -import net.corda.core.CordaException import net.corda.core.concurrent.CordaFuture import net.corda.core.identity.CordaX500Name import net.corda.core.internal.concurrent.openFuture @@ -318,6 +317,4 @@ open class Node(configuration: NodeConfiguration, } } -class ConfigurationException(message: String) : CordaException(message) - data class NetworkMapInfo(val address: NetworkHostAndPort, val legalName: CordaX500Name)