# Class VulkanChecks

java.lang.Object
com.io7m.jcoronado.api.VulkanChecks

public final class VulkanChecks extends Object
Functions to check the return values of Vulkan calls.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `checkReturnCode(int code, String function)`
  Check a return code.
  `static VulkanCallFailedException`
  `failed(int code, String function)`
  Create an exception indicating that the given call failed.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### checkReturnCode

    public static void checkReturnCode(int code, String function) throws VulkanCallFailedException
    Check a return code.
    Parameters:
      `code` - The return code
      `function` - The function name
    Throws:
      `VulkanCallFailedException` - If the return code denotes an error

  - ### failed

    public static VulkanCallFailedException failed(int code, String function)
    Create an exception indicating that the given call failed.
    Parameters:
      `code` - The return code
      `function` - The function name
    Returns:
      The exception