blockly > serializacja > wyjątki
Przestrzeń nazw serialization.exceptions
Zajęcia
Klasa |
Opis |
BadConnectionCheck |
Przedstawia błąd, w wyniku którego deserializacja próbowała połączyć 2 niezgodne połączenia. |
DeserializationError |
|
MissingBlockType |
Reprezentuje błąd, w wyniku którego stan zserializowany powinien udostępniać typ bloku, ale nie został podany. |
MissingConnection |
Reprezentuje błąd, w wyniku którego deserializacja napotkała blok bez połączenia zdefiniowanego w stanie zserializowanym. |
RealChildOfShadow |
Reprezentuje błąd, w wyniku którego deserializacja napotkała prawdziwy blok, ponieważ powodowała to deserializację elementów podrzędnych cienia. Jest to błąd, ponieważ jest to nieodmiana Blockly, która nie ma prawdziwych elementów podrzędnych. |
UnregisteredIcon |
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2023-12-02 UTC.
[null,null,["Ostatnia aktualizacja: 2023-12-02 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"]]