getNetworkOrThrow

fun <T : Network<T>> getNetworkOrThrow(type: NetworkType<T>, networkId: UUID): ProtoNetwork<T>

Gets the ProtoNetwork with the given networkId and type, or throws an exception if no such network exists.

Throws

If no network with networkId exists, or it is not of type.