Class SchemaRegistryApacheAvroException

  • All Implemented Interfaces:
    Serializable

    public class SchemaRegistryApacheAvroException
    extends com.azure.core.exception.AzureException
    Represents an exception that is thrown when Avro serialization or deserialization fails.
    See Also:
    Serialized Form
    • Constructor Detail

      • SchemaRegistryApacheAvroException

        public SchemaRegistryApacheAvroException​(String message)
        Initializes a new instance.
        Parameters:
        message - The exception message.
      • SchemaRegistryApacheAvroException

        public SchemaRegistryApacheAvroException​(String message,
                                                 Throwable cause)
        Initializes a new instance.
        Parameters:
        message - The exception message.
        cause - The Throwable which caused the creation of this exception.
      • SchemaRegistryApacheAvroException

        public SchemaRegistryApacheAvroException​(String message,
                                                 Throwable cause,
                                                 boolean enableSuppression,
                                                 boolean writableStackTrace)
        Initializes a new instance.
        Parameters:
        message - The exception message.
        cause - The Throwable which caused the creation of this exception.
        enableSuppression - Whether suppression is enabled or disabled.
        writableStackTrace - Whether the exception stack trace will be filled in.
      • SchemaRegistryApacheAvroException

        public SchemaRegistryApacheAvroException​(String message,
                                                 Throwable cause,
                                                 String schemaId)
        Initializes a new instance.
        Parameters:
        message - The exception message.
        cause - The Throwable which caused the creation of this exception.
        schemaId - The id of the schema being processed when this exception occurred. null if there was none.
    • Method Detail

      • getSchemaId

        public String getSchemaId()
        Gets the schema id that was associated with this exception.
        Returns:
        The schema id associated with teh exception. null if there was no schema id.