Class CmsRpcException_CustomFieldSerializer

java.lang.Object
com.google.gwt.user.client.rpc.CustomFieldSerializer<CmsRpcException>
org.opencms.gwt.CmsRpcException_CustomFieldSerializer

public final class CmsRpcException_CustomFieldSerializer extends com.google.gwt.user.client.rpc.CustomFieldSerializer<CmsRpcException>
GWT serializer for CmsRpcException.

This deliberately serializes only the exception data maintained by CmsRpcException. In particular, it prevents GWT from reflectively accessing fields declared by Throwable, which is not permitted by the Java module system.

  • Constructor Details

  • Method Details

    • deserialize

      public static void deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader, CmsRpcException instance) throws com.google.gwt.user.client.rpc.SerializationException
      Deserializes the exception data.

      Parameters:
      streamReader - the reader
      instance - the instance
      Throws:
      com.google.gwt.user.client.rpc.SerializationException - if something goes wrong
    • serialize

      public static void serialize(com.google.gwt.user.client.rpc.SerializationStreamWriter streamWriter, CmsRpcException instance) throws com.google.gwt.user.client.rpc.SerializationException
      Serializes the exception data.

      Parameters:
      streamWriter - the writer
      instance - the instance
      Throws:
      com.google.gwt.user.client.rpc.SerializationException - if something goes wrong
    • deserializeInstance

      public void deserializeInstance(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader, CmsRpcException instance) throws com.google.gwt.user.client.rpc.SerializationException
      Specified by:
      deserializeInstance in class com.google.gwt.user.client.rpc.CustomFieldSerializer<CmsRpcException>
      Throws:
      com.google.gwt.user.client.rpc.SerializationException
      See Also:
      • CustomFieldSerializer.deserializeInstance(com.google.gwt.user.client.rpc.SerializationStreamReader, java.lang.Object)
    • serializeInstance

      public void serializeInstance(com.google.gwt.user.client.rpc.SerializationStreamWriter streamWriter, CmsRpcException instance) throws com.google.gwt.user.client.rpc.SerializationException
      Specified by:
      serializeInstance in class com.google.gwt.user.client.rpc.CustomFieldSerializer<CmsRpcException>
      Throws:
      com.google.gwt.user.client.rpc.SerializationException
      See Also:
      • CustomFieldSerializer.serializeInstance(com.google.gwt.user.client.rpc.SerializationStreamWriter, java.lang.Object)