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

singleError

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

Create a single error.

Parameters

message - String!: The error message.

Return
MutableList<ConfigurationError!>!: A list containing a single error.

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

Create a single error.

Parameters

message - String!: The error message.

cause - Throwable?: The cause of the error.

Return
MutableList<ConfigurationError!>!: A list containing a single error.

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

Create a single error.

Parameters

position - DocumentPosition?: The location of the error in the configuration document.

message - String!: The error message.

Return
MutableList<ConfigurationError!>!: 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 - DocumentPosition?: The location of the error in the configuration document.

message - String!: The error message.

cause - Throwable?: The cause of the error.

Return
MutableList<ConfigurationError!>!: A list containing a single error.