Scala Library: scala.annotation.implicitNotFound
scala.annotation.implicitNotFound
To customize the error message that’s emitted when an implicit of type C[T1,…, TN] cannot be found, annotate the class C with @implicitNotFound. Assuming C has type parameters X1,…, XN, the error message will be the result of replacing all occurrences of ${Xi} in the string msg with the string representation of the corresponding type argument Ti. *
- Source
- Since
- 2.8.1
Instance Constructors From scala.annotation.implicitNotFound
new implicitNotFound(msg: String)
(defined at scala.annotation.implicitNotFound)
Full Source:
Interested in Scala?
I send out weekly, personalized emails with articles and conference talks.
Subscribe now.