Class UnsupportedDiscriminatorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.fhirfrog.frog.profilecompiler.UnsupportedDiscriminatorException
All Implemented Interfaces:
Serializable

public class UnsupportedDiscriminatorException extends RuntimeException
Thrown at compile time when a must-support slice's discriminator can't be resolved by any of this compiler's three implemented strategies (pattern/type/value) - most commonly because its discriminator.type is exists or profile (2 of FHIR's 5 defined kinds, genuinely unimplemented here; algorithm.md §8.1), but also raised for a pattern discriminator whose resolved sub-element carries none of the four handled constraint shapes.

Deliberately loud: the Ruby reference implementation silently drops slices like this - they end up in none of its three must-support sub-buckets, untested, with no error or warning (algorithm.md §3.2/§8.1). Per this change's tasks.md 5.5, that silent-drop behaviour is not carried forward - an IG author whose slice hits this exception knows exactly which profile, element, and discriminator kind is unsupported, rather than discovering a silent coverage gap later.

See Also:
  • Constructor Details

    • UnsupportedDiscriminatorException

      public UnsupportedDiscriminatorException(String message)