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

godot.entrygenerator.exceptions.WrongAnnotationUsageException.kt Maven / Gradle / Ivy

There is a newer version: 0.10.0-4.3.0
Show newest version
package godot.entrygenerator.exceptions

import godot.entrygenerator.model.PropertyHintAnnotation
import godot.entrygenerator.model.RegisteredProperty

class WrongAnnotationUsageException(
    registeredProperty: RegisteredProperty,
    propertyHintAnnotation: PropertyHintAnnotation?,
    effectiveTypes: Set? = null
) : EntryGeneratorException(
    "You annotated ${registeredProperty.fqName} with @${propertyHintAnnotation?.let { it::class.qualifiedName }?.substringAfterLast(".")?.removeSuffix("HintAnnotation")} which ${if (effectiveTypes != null) "is only applicable to properties of type $effectiveTypes" else "cannot be applied on properties of type ${registeredProperty.type.fqName}"}"
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy