### Install Kotlinter Pre-Push Hook Source: https://github.com/netflix/dgs-framework/blob/master/CONTRIBUTING.md Install a Git pre-push hook to automatically run style checks before code is pushed. This helps prevent build failures by ensuring code adheres to the project's style guidelines. ```bash ./gradlew installKotlinterPrePushHook ``` -------------------------------- ### Run ktlint Checks and Formatting Source: https://github.com/netflix/dgs-framework/blob/master/CONTRIBUTING.md Use these Gradle tasks to check Kotlin code style and format sources. The first two commands check linting for the entire project or a specific module, while the third formats the code. ```bash ./gradlew ktlintCheck # lint kotlin sources ``` ```bash ./gradlew :graphql-dgs-extended-validation:ktlintCheck # lint kotlin sources for a single module ``` ```bash ./gradlew ktlintFormat # format Kotlin Sources ``` -------------------------------- ### DebugInfo Type Source: https://github.com/netflix/dgs-framework/blob/master/graphql-error-types/src/main/resources/META-INF/schema/typederror.txt The DebugInfo type provides additional debugging details for errors. ```APIDOC ## Type DebugInfo ### Description Contains additional debugging information for an error. ### Fields - **exception** (String) - Optional - Details about the exception that occurred. ``` -------------------------------- ### TypedError Interface Source: https://github.com/netflix/dgs-framework/blob/master/graphql-error-types/src/main/resources/META-INF/schema/typederror.txt The TypedError interface defines a standard structure for errors in the GraphQL schema, allowing for consistent error handling across different services. ```APIDOC ## Interface TypedError ### Description Provides a structured way to represent errors in a GraphQL API. ### Fields - **errorType** (ErrorType!) - Required - An enumeration representing a coarse characterization of the error, suitable for client-side branching logic. - **errorDetail** (ErrorDetail) - Optional - Provides more fine-grained information about the error condition, allowing the ErrorType enumeration to remain small and static. - **origin** (String) - Optional - Indicates the source that issued the error (e.g., backend service, gateway, client library). - **debugInfo** (DebugInfo) - Optional - Optionally provided based on a request flag, may include stack traces or information from upstream services. - **debugUri** (String) - Optional - An HTTP URI to a page with additional debugging information, which can be general to the error class or specific to the instance. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.