Class SchemaRegistryApacheAvroException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.data.schemaregistry.apacheavro.SchemaRegistryApacheAvroException
- All Implemented Interfaces:
Serializable
Represents an exception that is thrown when Avro serialization or deserialization fails.
- See Also:
-
Constructor Summary
ConstructorDescriptionSchemaRegistryApacheAvroException
(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 TypeMethodDescriptionGets the schema id that was associated with this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SchemaRegistryApacheAvroException
Initializes a new instance.- Parameters:
message
- The exception message.
-
SchemaRegistryApacheAvroException
Initializes a new instance.- Parameters:
message
- The exception message.cause
- TheThrowable
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
- TheThrowable
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
Initializes a new instance.- Parameters:
message
- The exception message.cause
- TheThrowable
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 Details
-
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.
-