getRequiredProperty abstract method

String getRequiredProperty(
  1. String key
)

Returns the property value for key, or throws IllegalStateException if the property is not defined.

This is useful for required configuration values such as API keys.

Example:

final apiKey = resolver.getRequiredProperty('security.apiKey');

Implementation

String getRequiredProperty(String key);