config / org.apache.tuweni.config / ConfigurationErrors / singleError

singleError

static fun singleError(message: String): MutableList<ConfigurationError> (source)

Create a single error.

Parameters

message - The error message.

Return
A list containing a single error.

static fun singleError(message: String, @Nullable cause: Throwable?): MutableList<ConfigurationError> (source)

Create a single error.

Parameters

message - The error message.

cause - The cause of the error.

Return
A list containing a single error.

static fun singleError(@Nullable position: DocumentPosition?, message: String): MutableList<ConfigurationError> (source)

Create a single error.

Parameters

position - The location of the error in the configuration document.

message - The error message.

Return
A list containing a single error.

static fun singleError(@Nullable position: DocumentPosition?, message: String, @Nullable cause: Throwable?): MutableList<ConfigurationError> (source)

Create a single error.

Parameters

position - The location of the error in the configuration document.

message - The error message.

cause - The cause of the error.

Return
A list containing a single error.