Class SchemaResolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceException
org.opendaylight.yangtools.yang.model.repo.api.SchemaResolutionException
- All Implemented Interfaces:
Serializable
Exception thrown when a Schema Source fails to resolve.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaResolutionException
(@NonNull String message) SchemaResolutionException
(@NonNull String message, @NonNull Collection<SourceIdentifier> resolvedSources, @NonNull Multimap<SourceIdentifier, ModuleImport> unsatisfiedImports) SchemaResolutionException
(@NonNull String message, Throwable cause) SchemaResolutionException
(@NonNull String message, SourceIdentifier failedSource, Throwable cause) SchemaResolutionException
(@NonNull String message, SourceIdentifier failedSource, Throwable cause, @NonNull Collection<SourceIdentifier> resolvedSources, @NonNull Multimap<SourceIdentifier, ModuleImport> unsatisfiedImports) -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelper
addToStringAttributes
(MoreObjects.ToStringHelper toStringHelper) final SourceIdentifier
Return YANG schema source identifier consisting of name and revision of the module which caused this exception.final @NonNull Collection<SourceIdentifier>
final @NonNull Multimap<SourceIdentifier,
ModuleImport> Return the list of sources which failed to resolve along with reasons why they were not resolved.final String
toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SchemaResolutionException
-
SchemaResolutionException
-
SchemaResolutionException
public SchemaResolutionException(@NonNull String message, SourceIdentifier failedSource, Throwable cause) -
SchemaResolutionException
public SchemaResolutionException(@NonNull String message, @NonNull Collection<SourceIdentifier> resolvedSources, @NonNull Multimap<SourceIdentifier, ModuleImport> unsatisfiedImports) -
SchemaResolutionException
public SchemaResolutionException(@NonNull String message, SourceIdentifier failedSource, Throwable cause, @NonNull Collection<SourceIdentifier> resolvedSources, @NonNull Multimap<SourceIdentifier, ModuleImport> unsatisfiedImports)
-
-
Method Details
-
getFailedSource
Return YANG schema source identifier consisting of name and revision of the module which caused this exception.- Returns:
- YANG schema source identifier
-
getUnsatisfiedImports
Return the list of sources which failed to resolve along with reasons why they were not resolved.- Returns:
- Source/reason map.
-
getResolvedSources
-
toString
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
-