Class SourceUnavailableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.micronaut.jsonschema.generator.discovery.SourceUnavailableException
All Implemented Interfaces:
Serializable

public final class SourceUnavailableException extends Exception
A configured discovery source is unavailable before per-object schema retrieval can start.
Since:
2.2.0
See Also:
  • Constructor Details

    • SourceUnavailableException

      public SourceUnavailableException(String scope, String name, DiscoveryStep step, String code, String message)
      Parameters:
      scope - Discovery scope in which the source is unavailable
      name - Source object name, or null when the failure applies to the whole source
      step - Discovery step that detected the unavailable source
      code - Stable diagnostic code for the failure
      message - Human-readable failure description
  • Method Details

    • scope

      public String scope()
      Returns:
      Discovery scope in which the source is unavailable
    • name

      public String name()
      Returns:
      Source object name, or null when the failure applies to the whole source
    • step

      public DiscoveryStep step()
      Returns:
      Discovery step that detected the unavailable source
    • code

      public String code()
      Returns:
      Stable diagnostic code for the failure