Class SampleDataException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.mule.runtime.api.exception.MuleException
org.mule.sdk.api.data.sample.SampleDataException
All Implemented Interfaces:
Serializable

@Experimental @MinMuleVersion("4.4") @DoNotEnforceMinMuleVersion public class SampleDataException extends org.mule.runtime.api.exception.MuleException
Exception to indicate than an error occurred fetching sample data through a SampleDataProvider. NOTE: Experimental feature. Backwards compatibility not guaranteed.
Since:
1.4.0
See Also:
  • Field Details

    • UNKNOWN

      public static final String UNKNOWN
      Signals an unexpected exception
      See Also:
    • NO_DATA_AVAILABLE

      public static final String NO_DATA_AVAILABLE
      Indicates that the SampleDataProvider didn't return any information
      See Also:
    • CONNECTION_FAILURE

      public static final String CONNECTION_FAILURE
      Indicates that a connection couldn't be established
      See Also:
    • INVALID_LOCATION

      public static final String INVALID_LOCATION
      Indicates that Sample Data resolution was attempted on a Location which doesn't exist
      See Also:
    • MISSING_REQUIRED_PARAMETERS

      public static final String MISSING_REQUIRED_PARAMETERS
      Indicates that the Sample Data resolution was attempted but the underlying SampleDataProvider has required parameters which weren't supplied
      See Also:
    • NOT_SUPPORTED

      public static final String NOT_SUPPORTED
      Indicates that Sample Data resolution was attempted on a component which doesn't support that capability
      See Also:
    • INVALID_TARGET_EXTENSION

      public static final String INVALID_TARGET_EXTENSION
      Indicates that Sample Data resolution was attempted on an unregistered Extension
      See Also:
  • Constructor Details

    • SampleDataException

      public SampleDataException(String message, String failureCode)
    • SampleDataException

      public SampleDataException(String message, String failureCode, Throwable cause)
    • SampleDataException

      public SampleDataException(org.mule.runtime.api.i18n.I18nMessage message, String failureCode)
    • SampleDataException

      public SampleDataException(org.mule.runtime.api.i18n.I18nMessage message, String failureCode, Throwable cause)
  • Method Details

    • getFailureCode

      public String getFailureCode()
      Returns:
      The failure code of the error that produced the error