See:
|
val (root, instance) = try { |
|
val root = parseRoot(manager, child) |
|
val instance = child.newInstance() |
|
root to instance |
|
} catch (e: Exception) { |
|
if (e !is CommandParseException) |
|
betterError(manager, """ |
|
Unable to access constructor of the $child, confirm the declaration and 'public' modifier. filtered |
|
Correction: ? |
|
class ${child.name} (...) or |
|
class ${child.name} { public constructor(...) } |
|
""".trimIndent(), e) |
|
null to null |
|
} |