tuweni / org.apache.tuweni.config / Configuration / getString

getString

abstract fun getString(key: String!): String! (source)

Get a string from this configuration.

Parameters

key - String!: A configuration key (e.g. "server.address.hostname").

Exceptions

IllegalArgumentException - If the key cannot be parsed.

InvalidConfigurationPropertyTypeException - If the value is not a string.

NoConfigurationPropertyException - If the key was not set in the configuration.

Return
String!: The value.