ConfigurationError

io.github.positionpal.location.commons.ConfigurationError
See theConfigurationError companion enum

A set of extension methods to validate configuration parameters.

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Extensions

Extensions

extension (n: Option[Int])
def validateNum(name: String): ValidatedNec[ConfigurationError, Int]

Attributes

Returns

a validated integer, ensuring it is not empty and positive, or an invalid ConfigurationError.

extension (n: Int)
def positive: ValidatedNec[ConfigurationError, Int]

Attributes

Returns

a validated integer, ensuring it is positive, or an invalid ConfigurationError.

extension (s: Option[String])
def validStr(name: String): ValidatedNec[ConfigurationError, String]

Attributes

Returns

a validated string, ensuring it is not empty, or an invalid ConfigurationError.

extension (s: String)
def nonEmpty: ValidatedNec[ConfigurationError, String]

Attributes

Returns

a validated string, ensuring it is not empty, or an invalid ConfigurationError.