XCTLRuntimeError.swift 865 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // XCTLRuntimeError.swift
  3. // notebook
  4. //
  5. // Created by 邢铖 on 2023/5/18.
  6. //
  7. import Foundation
  8. public enum XCTLRuntimeError: Error {
  9. case importUnknownMember(variableName: String)
  10. case undefinedVariable(variableName: String)
  11. case unknownMemberForVariable(memberName: String, variableName: String)
  12. case unexpectedVariableType(expect: String, butGot: String)
  13. case generateProtocolArgumentError(needs: String)
  14. case generateProtocolNotFoundedError(name: String)
  15. case parentNoHoldingObject
  16. case paragraphArgsNotEnough(needCount: Int, butGot: Int)
  17. case invalidConditionFrame
  18. case invalidListFrame
  19. case variableNotImplementProtocol(protocolName: String)
  20. case unknownMethodForName(name: String)
  21. case variableStackNoObject
  22. case variableStackNotEmptyAfterTerminator
  23. }