Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["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."]]],["The `serialization.exceptions` namespace defines classes for handling errors during the deserialization process in Blockly. Key classes include: `BadConnectionCheck` for incompatible connections, `MissingBlockType` for absent block types, `MissingConnection` for missing connections in blocks, `RealChildOfShadow` for real blocks incorrectly placed as children of shadows and two more classes `DeserializationError` and `UnregisteredIcon` that handle errors during deserialization. These classes ensure accurate block recreation from a saved state.\n"]]