(in ./Carbon/Exceptions/CodeGenerationException.lua)

An exception to be generated when generation of code fails.

Inherits Exception


class public CodeGenerationException:New(string message, string code)

Returns CodeGenerationException

class public CodeGenerationException:PlacementNew(CodeGenerationException? out, string message, string code)

Returns CodeGenerationException

object public CodeGenerationException:Init(string message, string code)

Returns void

  • required message: A message explaining why code generation failed.
  • required code: The code that was generated.

Denotes that code generation failed in a metaprogramming-enabled module.


public string GeneratedCode

Contains the code that was generated and failed to meet the criteria.

public string Message

Contains a message about what went wrong generating code.