All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scope.generic.ModelMapperCaseClassIdMessages.scala Maven / Gradle / Ivy

There is a newer version: 0.0.12
Show newest version
package scope.generic

import cats.Show

object ModelMapperCaseClassIdMessages {

  import cats.syntax.show.*

  def abortDueDifferentTypesFields[TR: Show, FR: Show, DFR: Show](
    aSymbolName: TR,
    bSymbolName: TR,
    aFields: FR,
    bFields: FR,
    diff: DFR
  ): String =
    show"""
       |Type $aSymbolName and $bSymbolName doesn't have the same constructor.
       |Keep in mind that this macro only support the construction using `new`, smart constructors are not supported yet.
       |## Type $aSymbolName fields:
       |$aFields
       |
       |## Type $bSymbolName fields:
       |$bFields
       |
       |------------------------------
       |Differences:
       |$diff
       |""".stripMargin
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy