Enum nb2nl::xml2nl::Error [−][src]
pub enum Error {
Show 15 variants
InvalidXml {
error: Error,
},
InvalidProject,
MultipleRoles,
SpritesWithSameName(String),
CreateOutsideOfTell,
UseOfInternalBlock(String),
NonConstantBreedName,
NonConstantCodeBlock,
NonConstantPatchProp,
NonConstantColor,
SetTicksToNonZero,
ChangeTicksByNonOne,
UnknownBlockType(String),
NonConstantOperator,
EmptyReportRing,
}
Expand description
Possible errors for the NetsBlox to Netlogo conversion.
Variants
The input was not valid xml. Impossible for a valid NetsBlox xml file.
Fields of InvalidXml
error: Error
The input was not a valid NetsBlox project. Impossible for a valid NetsBlox xml file.
The input project had multiple roles defined, which is not currently supported.
SpritesWithSameName(String)
The project had two or more sprites that share a single (case insensitive) name.
Tuple Fields of SpritesWithSameName
0: String
The project had a block that created turtles outside of a tell block (not supported).
UseOfInternalBlock(String)
The project used a block which was only intended for core behavior (not user-level code).
Tuple Fields of UseOfInternalBlock
0: String
The project refered to a breed name indirectly, which is not currently supported.
The project had a code block which was non-constant or non-inlined (e.g. a lambda function).
The project refered to a patch prop indirectly (not by-name)
The project refered to a color indirectly (not by-name)
A set block was used to set the builtin ticks variable to a non-zero value (not allowed).
A change block was used to change the builtin ticks variable by a non-one amount (not allowed).
UnknownBlockType(String)
The given block type was not recognized or not supported.
Tuple Fields of UnknownBlockType
0: String
A general operator block contained a non-constant operator name, which is currently not supported.
A ringified reporter was empty.