Class VulkanException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.jcoronado.api.VulkanException
All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<String>, com.io7m.seltzer.api.SStructuredErrorType<String>, Serializable
Direct Known Subclasses:
VulkanAllocationFailedException, VulkanCallFailedException, VulkanDestroyedException, VulkanImplementationException, VulkanIncompatibleClassException, VulkanLWJGLSupportException, VulkanMissingRequiredExtensionsException, VulkanMissingRequiredLayersException, VulkanMissingRequiredMemoryTypeException, VulkanMissingRequiredVersionException, VulkanResourceException

public abstract class VulkanException extends Exception implements com.io7m.seltzer.api.SStructuredErrorExceptionType<String>
The base type of exceptions raised by the API.
See Also:
  • Constructor Details

    • VulkanException

      public VulkanException(String message, Map<String,String> inAttributes, String inErrorCode, Optional<String> inRemediatingAction)
      Construct an exception.
      Parameters:
      message - The message
      inAttributes - The attributes
      inErrorCode - The error code
      inRemediatingAction - The remediating action
    • VulkanException

      public VulkanException(String message, Throwable cause, Map<String,String> inAttributes, String inErrorCode, Optional<String> inRemediatingAction)
      Construct an exception.
      Parameters:
      message - The message
      cause - The cause
      inAttributes - The attributes
      inErrorCode - The error code
      inRemediatingAction - The remediating action
  • Method Details

    • attributes

      public final Map<String,String> attributes()
      Specified by:
      attributes in interface com.io7m.seltzer.api.SStructuredErrorType<String>
    • errorCode

      public final String errorCode()
      Specified by:
      errorCode in interface com.io7m.seltzer.api.SStructuredErrorType<String>
    • remediatingAction

      public final Optional<String> remediatingAction()
      Specified by:
      remediatingAction in interface com.io7m.seltzer.api.SStructuredErrorType<String>
    • exception

      public final Optional<Throwable> exception()
      Specified by:
      exception in interface com.io7m.seltzer.api.SStructuredErrorType<String>