blockly > serialization > exceptions
serialization.exceptions namespace
Classes
Class |
Description |
BadConnectionCheck |
Represents an error where deserialization tried to connect two connections that were not compatible. |
DeserializationError |
|
MissingBlockType |
Represents an error where the serialized state is expected to provide a block type, but it is not provided. |
MissingConnection |
Represents an error where deserialization encountered a block that did not have a connection that was defined in the serialized state. |
RealChildOfShadow |
Represents an error where deserialization encountered a real block as it was deserializing children of a shadow. This is an error because it is an invariant of Blockly that shadow blocks do not have real children. |
UnregisteredIcon |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `serialization.exceptions` namespace houses classes representing various errors that can occur during block serialization and deserialization in Blockly."],["These errors include incompatible connection attempts, missing block types or connections, and invalid block hierarchies like a real block being a child of a shadow block."],["Each exception class provides specific details about the error, aiding in debugging and error handling during the serialization/deserialization process."]]],[]]