SchemaRegistryApacheAvroException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
azure. core. exception. AzureException - com.
azure. data. schemaregistry. apacheavro. SchemaRegistryApacheAvroException
- com.
- com.
- java.
- java.
- java.
public class SchemaRegistryApacheAvroException
extends AzureException
Represents an exception that is thrown when Avro serialization or deserialization fails.
Constructor Summary
| Constructor | Description |
|---|---|
| SchemaRegistryApacheAvroException(String message) |
Initializes a new instance. |
| SchemaRegistryApacheAvroException(String message, Throwable cause) |
Initializes a new instance. |
| SchemaRegistryApacheAvroException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) |
Initializes a new instance. |
| SchemaRegistryApacheAvroException(String message, Throwable cause, String schemaId) |
Initializes a new instance. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getSchemaId()
Gets the schema id that was associated with this exception. |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
SchemaRegistryApacheAvroException
public SchemaRegistryApacheAvroException(String message)
Initializes a new instance.
Parameters:
SchemaRegistryApacheAvroException
public SchemaRegistryApacheAvroException(String message, Throwable cause)
Initializes a new instance.
Parameters:
SchemaRegistryApacheAvroException
public SchemaRegistryApacheAvroException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Initializes a new instance.
Parameters:
SchemaRegistryApacheAvroException
public SchemaRegistryApacheAvroException(String message, Throwable cause, String schemaId)
Initializes a new instance.
Parameters:
null if there was
none.
Method Details
getSchemaId
public String getSchemaId()
Gets the schema id that was associated with this exception.
Returns:
null if there was no schema id.