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
@Beta public class SchemaResolutionException extends SchemaSourceException
Exception thrown when a Schema Source fails to resolve.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SchemaResolutionException(@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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MoreObjects.ToStringHelper
addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
SourceIdentifier
getFailedSource()
Return YANG schema source identifier consisting of name and revision of the module which caused this exception.@NonNull Collection<SourceIdentifier>
getResolvedSources()
@NonNull Multimap<SourceIdentifier,ModuleImport>
getUnsatisfiedImports()
Return the list of sources which failed to resolve along with reasons why they were not resolved.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
SchemaResolutionException
public SchemaResolutionException(@NonNull String message)
-
SchemaResolutionException
public SchemaResolutionException(@NonNull String message, Throwable cause)
-
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 Detail
-
getFailedSource
public final SourceIdentifier getFailedSource()
Return YANG schema source identifier consisting of name and revision of the module which caused this exception.- Returns:
- YANG schema source identifier
-
getUnsatisfiedImports
public final @NonNull Multimap<SourceIdentifier,ModuleImport> getUnsatisfiedImports()
Return the list of sources which failed to resolve along with reasons why they were not resolved.- Returns:
- Source/reason map.
-
getResolvedSources
public final @NonNull Collection<SourceIdentifier> getResolvedSources()
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
-
-