toSudoUserException

fun GraphQLResponse.Error.toSudoUserException(): SudoUserException

Convert from a GraphQL Error into a custom exception of type SudoUserException